Be wary of automatic switch overs, I had one already fitted when I got the boat, it was meant to switch between shore power and the generator. It worked well, until it failed, it then melted the supply cables.
I would only go for a manual switch that eliminates the possibility of both being powered together.
I have had the generator disconnected and an inverter installed.