I take Wegovy for obesity, and it completely changes my behaviour. I don't often think about food any more, and when I do, I am quite happy preparing a small amount of healthy food. Not only that, I have more energy so I maintain a far more active lifestyle.
Given that I can go for months without those "bad habits", but if I stop taking it they come back, I think they're more than habits. Habits break if you stop doing them for a while, these compulsions don't. Until I took this drug, I didn't know what it was like to be able to not constantly think about food and being hungry. I've been overweight for nearly my entire life since I was a breastfeeding baby, and this is the first time in my life that I don't feel like I'm being held hostage to my hunger.
I have lost weight and maintained a healthy weight for periods of time, but I'm just hungry the whole time and eventually the hunger starts beating my willpower.
For what it's worth I also have problems with anxiety. Similarly I tried years of therapy/mediation/mindfulness/etc. to get rid of my anxiety but it never went away until I took sertraline. Now, I live a pretty much anxiety-free life as long as I take a pill a day.