Spring-loaded contacts have mostly alleviated this problem with aluminium conductors in creating wire, but some making codes however forbid the use of aluminium. Enamelled copper wire (copyright) has an enamel coating applied to it that makes it a lot more immune to corrosion. Some types of coated copper for instance https://2ly.link/1zveT