You can't compare like that at all in my opinion. Because the shorter term consequences are much worse with drugs and lack of shit food won't land you in thep psychiatric ward or lockup. Nor have you suck aids infested cock for a Big Mac.
The mechanisms are the same but there's levels to this

As an example, meth will increase your dopamine by 10,000%, maybe a Big Mack can do it by 200% like a cigarette.
But like I always say, the solution to drug dependency or obesity is more and better drugs, unless food supply or drug supply is cut. Look at the modest, but significant effects of Ozempic. There's no need for "willpower" this way, you just don't feel like eating. Willpower is a failing concept.
Ozempic
Metformin
"Optimized hormones" like in a "sport HRT" fashion, GH a must have
Further appetite suppressant like stimulants (might help getting off your ass too in some cases).
Nicotine.
Other psych drugs if having "real" problems like severe depression.