I would imagine it depends on weather
your AC is shore power
or onboard genset.
Take the classic example of a steel
"earthing" (ie bonding) the genset to the hull
(which is required for a electrical
compliance certificate in australia) actually makes it more likely to be electrocuted. You need to grab one wire and touch something metal to be electrocuted.
Leaving the genset "floating" would be safer as only an active-neutral fault could possibly cause electrocution. You need to grab two wires.
The DC(-) and all metal appliances
and the hull
need to be eqipotential bonded for onboard safety
, regardless of if you are using a genset or not. In this case, from a safety point of view, while on the boat you are perfectly safe.
Connecting the onboard bonding system to the shore power
earth is necessary to prevent electocution if a fault exists at some point when you are stepping from the jetty to the pier or in the water
around the boat.