For some reason this suggestion, i.e. the suggestion to solve a problem by eliminating the root causes, does not seem to be popular on this forum. I'd very much like to know why this is given that this place is supposedly frequented by rational people. If eating too much unhealthy food is making you fat you don't solve that by putting a chemical stopper in your veins, you solve it by eating less of the bad stuff.
Most fat people who want to lose weight have already tried eating less food. Just like many alcoholics have tried to cut down or stop drinking. Some of those people succeed, but many others don’t. The reasons why are far more complex than commitment and willpower.
Try this experiment: put a gun to your head and pull the trigger. You may find it hard. Your hand may shake; you will start sweating; rising panic will cloud your thinking.
But it's so easy! Just a couple pounds of pressure on the trigger. Anybody can do it.
That's me substituting a physiological problem for a psychological one.
Weight depends on a complex interaction between many systems of the body. Losing significant weight and keeping it off in healthy way without side effects can be difficult.
There was a good look at much of this in the Nova episode "The Truth About Fat" in 2020. Old Nova episodes are usually behind a paywall if you aren't a member of your local PBS station but occasionally old episodes become free for a while. It might be worth checking occasionally to try to catch it during one of those free periods.