Is it really so simple? Doesn't that ignore all other bodily responses to food and assume that food has only one characteristic, to be used for energy? Isn't it possible that some food creates hormonal conditions that result in a body with a higher/lower metabolic rate? Isn't it also possible that some calories are lost through waste? I think it's naive to simplify such a complex process.