Select power supply voltage using MOSFETs
Add a second mosfet in series with the 1.8V one, but upside-down, wire the gates in parallel.  Mosfets don't mind passing "backwards" current when they are turned on. and when it's turned off it will keep the 5v out of the 1.8V