This goes for coping with a lot of executive function problems and disorders.
Part of how I have to manage my rather severe ADHD is specifically crafting an environment that's as ADHD friendly as possible, much to my wife's dismay.
That means nothing can ever be hidden away or out of sight, otherwise I will immediately forget it exists. It means every bill must be on autopay, or it will not get paid. It also means living as minimally as possible, for me. Even something as "simple" to a neurotypical like washing dishes or doing laundry is a seemingly impossible mountain for me to climb. I solve that by owning as little as possible, and I also remove choices by, for example, just owning multiples of the same exact outfit.
The moment any sort of friction or context switching is involved in a task, I am going to fail, so I have to architect my life in a way that reduces friction as much as possible.
For work, that's mostly just luck. I'm a solo sysadmin for a non-tech company, and I work from home so I have a great deal of freedom. Outside of interruptions for help desk level tickets/emails (which suck and do throw off my flow), no one really oversees what I do and I set my own deadlines for the most part so I can work when and however it suits me to take advantage of days where I have good flow state.
While at a certain level of abstraction you can reduce both to A -> !B -> C, that generalization seems to obfuscate specific important differences that impact pathways to treatment. Craving is not the same as lacking energy. Craving, while subversive, energizes, depression does not.
I also know that if I overeat, I have a strong urge to keep feeding (more chips, more pizza, more chipsahoy). Whereas when I eat a proper meal, I'm fine when the eating of that meal ends.
Kids often still need to learn that punching yourself in the face hurts.
The only thing that helped my depression, apathy and executive dysfunction was realizing I was going to rot anyways, I was never going to be happy, so I may as well start the startup, go on runs, and succeed.
Let go of the expectation you will want to/be in the mood or feel good from it
Life is not chocolate malts and gummy bears
So the advise or admonishment of the normally weighted that losing weight "just requires willpower" is true but facile.
If we were to medically induce a constant feeling of hunger and insatiability into a person of normal weight, I'm sure they could keep the weight off, but would find that their willpower is highly depleted.
There are medications that cause increased appetite and weight gain (ex: some bipolar depression medications, prednisolone). This effect is so pronounced, that if a doctor sees the patient not gaining weight, they will suspect non-compliance and have to rule it out. Of course, some patients use extreme diet and exercise (willpower) to avoid these effects, but a normal person accustomed to expending a normal amount of willpower to maintain weight will find themselves gaining.
So I dispute this statement with some enthusiasm.
https://www.history.com/shows/alone
...not losing weight on a limited diet would be a huge advantage over the other players.