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.