I'm not sure that is true. However, I admit that I know little about nutritional science. I am a physicist by training, and from that point of view, it is possible that different amounts of energy are required to release the energy stored in the different types of food. The total energy available in a theoretical sense would be the Gibbs free energy. I don't know if nutritionists use combustion or something else when determining the caloric density.