But you are right with the fact that at the end, it mostly doesn't work. But those who stick with regime, it works 100% and positive changes in life, quality, happiness etc are massive.
The real solution - treat underlying mental issues. They are always there with obese people, they are massive (no pun intended), and they manifest as obesity, among plethora of other mental issues.
Mental issues is a broad category as well. Are food cravings a "mental issue", or a "physiological/hormonal issue"? No clear difference between those two, and given how GLP-1s quench cravings in general - not just food cravings, plenty of people on those report losing their compulsive behaviors, even such as gambling or shopping - the hormonal variant sounds quite plausible.
Which may be actually good. We are a lot better in treating hormonal issues than mental issues.