Measuring elevation

Which reference surface is most accurate for measuring elevation from, (a) the
geoid, or (b) the reference ellipsoid?