Glucose can be converted into ATP via two pathways in the mitochondria: one produces 30 something ATP, the other produces 2. Yeah, sure the 1st law of thermodynamics is valid (the rest of the energy goes into heat), but for your cells, they get much less energy in the second (anaerobic) pathway, so you'll feel worse/hungrier if that's how metabolism happens.