Rock can support small irregularities, but a planet’s own gravity overwhelms large departures from a rounded shape. Earth rotates, so its equilibrium figure is slightly flattened at the poles.
The useful geometric approximation is an oblate ellipsoid. For precise heights, geodesists also use the geoid: a surface defined by gravity. Mountains and ocean trenches sit on this already rounded world.