Ultimate fuel economy simply depends upon the road load. Moving the car takes fuel, to overcome all the drag forces that try to slow that car down.
So the least fuel is used for the least total drag.
However, as mentioned above, the least drag depends on what happens after the hill.
if we assume there is the hill and just a long straight and no requirement to stop, the greatest distance travelled for the least fuel (ie max economy) is, in order best to worst:
BEST: Engine off, neutral. Economy = infinite (fuel used zero, distance traveled = max)
Median: Engine on, idling, in neutral. (Fuel used = small amount, distance traveled = max)
Worst: Engine on, in gear. (Fuel used, very small amount, but distance travelled = min)
Very worst: Engine on, in gear, full throttle, driver dragging brakes!
In the real world, of course, you don’t generally know if you’re going to have to stop, and as soon as you do, you’re knobbled because a conventional car has no way of recovering the energy stored in it’s KE. If you stop by braking, or by using “engine braking” in either case the cars KE is lost to heat, irrecoverably.
A few of the latest cars now have an automatic “sailing” mode, where they decouple the engine and coast at speed with the lowest drivetrain losses possible.
Interestingly, one “real world” advantage of EV’s (Electric vehicles) is that because they have a two way drivetrain power transfer capability, driving one “badly” doesn’t necessarily increase energy consumption as much as for an ICE driven poorly.