Even in a car engine having different kinds of fuels changes how much of it gets converted to energy.
Your body is infitely more complex than a car.
Calories in calories out is not an immutable law.
If that were the case, you could binge eat 30,000 calories and then you'd somehow add 28,000 calories worth of fat to your body in one day, which just isnt how that works.