That’s a more complicated topic. Not everyone’s endocrine system is wired the same way, and you can’t always just willpower your way through it.
Insistence that willpower is sufficient for weight regulation is a big cause of people going on diet after diet that just doesn’t work. They’re fighting against the system that has a disproportionate influence on what you want in the first place, and if you push it too far you find yourself not giving a shit about your diet, and then being filled with a slew of complex feelings coming from your “lack of self control”.
It’s better to direct that energy towards getting your diet compositionally right than trying to be okay just being hungry.
You can’t get your body to stop insisting it needs food, but you can get it to insist less often. You can teach it that it doesn’t need “SUGAR”, it needs water and maybe an apple or banana. You can give it a little solid protein between meals to keep it from asking for a continuous stream of carbs.
You can learn to identify the difference between eating because you’re bored or want a little dopamine, and eating because you’re hungry. The first one is your brain and you can willpower through it to eventually unlearn the habit.
You can choose to make good choices at the store instead of failing to make them in the kitchen.
Willpower is critical, but it’s important to know what you can or cannot actually solve with it and work within that framework.
You’re in control of your body, but that doesn’t mean that you need to pick the harder path.
And, for some people, their endocrine system is a lot more forgiving. Those usually aren’t the people who have a lot of trouble loosing or keeping off weight because they try to just “eat less” and it works.