Sure, when you're coasting you're not expending much energy, and when riding a hilly route one tends to coast more than a flat one. However, a two-hour ride on a hilly route with more coasting felt about the same as a four-hour ride on a relatively flat route with much, much less coasting effort wise, and in how-I-felt-the-rest-of-the-day wise.