Step 1: Definitions.
The geoid is an equipotential surface of Earth’s gravity field, representing mean sea level. The reference ellipsoid is a smooth mathematical surface approximating the shape of the Earth.
Step 2: Ideal conditions.
If the planet has:
then the gravitational potential would be smooth and symmetrical, and the geoid would coincide with the reference ellipsoid.