Or use a switch to operate a 12 volt relay. which in turn operates the pump. Apart from corrosion, lots of switches fail due to arcing ' burning of the contacts due to the inductive load of the motor.
When my momentary shower sump pump failed I replaced with a non momentary action switch that has a built in led indicator when on. This means the sump is emptying whilst the user is towelling.