What matters is convincing your entire body that you're not in danger of starvation. That it's not a dire emergency that you're expending more calories than you're consuming. That that millions of years of evolved emergency systems no longer are leading you in the direction you desire. And keeping your focus on that for every minute of the 6+ hours per day where your body is screaming that you need more food.
GLP-1 agonists very slightly help with that. Ok, they probably help more than slightly if the dosage is tuned carefully, but you do need to worry more about side effects at higher doses as well. Medication is no panacea, but the fact is that we evolved in a very different environment than the one in which we now live. Many people benefit from some help bringing our body's impulses into sync with our new environment.