The body does not have the capability to create mass out of nothing. If you consume fewer calories than the body uses, you will lose weight. It literally doesn't matter what you eat as long as Calories In < Calories Out
Losing weight on the Fast Food Diet https://newsfeed.time.com/2014/01/05/teacher-loses-37-pounds...
Twinkie Diet https://www.cnn.com/2010/HEALTH/11/08/twinkie.diet.professor...
Beer Diet https://www.menshealth.com/weight-loss/a19532411/the-beer-di...
A human body is not an antimatter reactor. It expels mass constantly.
It's obviously thermodynamically possible to get less energy out of a piece of food simply by shitting out slightly more of it.
"Yeah, but the current controller won't perfectly convert the incoming electricity to a state usable by the battery"
Okay, so? What is the actual argument here?
If you define "calories in" as "how much the person actually metabolized from the food they ate", then "calories in - calories out" will obviously determine their weight, but you can't actually measure calories in using that definition, so it's a useless definition.
For dietary purposes, the definition people are using is the number on the packet of food they ate, which there is obviously no law of thermodynamics requiring that it perfectly match their change in weight.
So yes, for many people, framing weight-loss as calories in vs calories out is a dramatic oversimplification.
You are not immune to thermodynamics.
What you're describing are things that reduce the body's energy expenditure. Buy making it think it's in high cortisol survival mode.
But even then you can still lose weight if you're eating less than you're using.
Do you honestly believe that the only way that a body can lose mass is by burning it off?
That belief shouldn't stand up to even the most cursory examination. You probably have an entire room in your house dedicated to another way of losing mass.
You body will hold excess energy in it's fat tissue if you consume more energy via food than you expend through metabolic active.
If you consume less energy via food than you are expending through metabolic activity, your body will convert fat tissue into the molecules it needs to meet it's energy needs.
You don't just shit the pounds off.
Someone who is lactose tolerant will gain more weight from a glass of milk than someone who is lactose intolerant because they are capable of getting energy from the lactose. The person who is lactose intolerant literally will shit those future pounds off.