So here's a possible chain of events
in our
thought experiment that's perfectly consistent with the laws of thermodynamics but is inconsistent with the notion that a calorie is a calorie is a calorie: first, the sugar causes A to be insulin resistant; second, the insulin resistance serves to cause a compensatory elevation of serum insulin levels; third, the elevated insulin causes A to
store calories
in his fat tissue every day and grow fatter.