I dont know anyone who thought input == output. Diets like keto clearly show the opposite.
In non ketogenic states, input does somewhat equals output.
Nutrition experts still try to create a caloric deficit when they create nutrition plans.
If there was some sort of magic nutrient that made you lose weight by eating mostly the same food, I'm sure most nutrition experts would have known already.