It's almost like they were trying to gaslight people into believing that sugar was healthier for you than dietary fat.
"It's got less calories, goy!"
IIRC they use constant-pressure calorimetry and just burn the food completely to determine caloric content. Straight up light it on fire, no correlation to bioavailable energy.
