One couple to avoid is stainless-steel and aluminium-alloy, though it does vary a bit by the specific alloys.
The steel eats the aluminium for breakfast; a point worth bearing in mind when building miniature railways with aluminium rails, especially ground-level where earth and decomposing leaf-litter can be a problem; or in salty coastal areas.
Galling between stainless-steel fasteners is a bit less likely if the screw and nut is of different grade.
…
Re David George’s observation…
I know!
The original belays of that type used ‘Rawl’ “self-drilling” tubular-steel expansion sleeves for the M8 X 12mm set-screws commonly holding the aluminium-alloy belay hanger-plates themselves. Local cavers would install the sleeves, which stayed permanently in the limestone. When visiting the cave we’d fit the hangers and ropes on the way down but remove them on exit, leaving the sleeves there. Many are still Down Below, now unused, quietly rusting away.
So the dissimilar-metals problem was not very common except on kit left underground for a long time.
Nevertheless I was never quite sure which came first: worn-out threads or corroded sleeves.
“Self-drilling”: the sleeve ends had sharp serrations so turning them into simple percussion-drills when screwed to a holder which one struck with a hammer while rotating it by hand.
I gather the Rawlplug company was horrified to discover we were trusting our lives to shelf-bracket fasteners! Well, two screws at a time to halve the load on each. In theory.
.
In later years I helped operate a laboratory test-tank filled with fresh water kept sweet with swimming-pool additives and filters. Although the chemicals, including calcium-hypochlorite disinfectant and copper-sulphate algicide, were at the same very weak concentrations as in a pool so safe for us, it was electrolytic enough for test-pieces made from aluminium alloy and stainless-steel screws to emerge after a few days with white measles.
“But it’s anodised!” their ‘owners’ plaintively complained.
I had previously worked for a metals-finishing company, so knew the problem; but could never get through to them that the decorative black finish on their prototypes was porous!