If the electrical plans call for an electric water heater and the mechanical plans call for a gas water heater how is it determined which one to use?

If the electrical plans call for an electric water heater and the mechanical plans call for a gas water heater how is it determined which one to use?