Drink water or tea or coffee (sweeten with stevia or monk fruit if required). Eat 4 stalks of celery. Don't purchase foods that you can't resist eating. Take a walk or get busy doing something.
Hunger pangs are a biochemical signal that your cells are, in fact, having to use stored fat as a resource for fuel. They are saying "hey, we're on the reserve tank now. Time to fill up again." Your response to those pangs is a learned response as much as an automatic one. We are not starving hunter-gathers anymore. We don't need to rush and fill our stomachs the moment we feel a twinge.
Try a keto diet. Hunger pangs are more severe when you eat a lot of carbohydrates and rely on glycogen as your fuel source. A keto diet can be difficult for some people, but if you cut out the carbs and your body becomes fat adapted your CRAVINGS for sweets, treats, and junk food will decrease. When you don't crave something -- and don't have it in your house -- it is a lot easier to quench the need for food with either no calories or a very low calorie, high fiber food.
Let's also reframe your thinking. As Yoda said, "Do or do not. There is no try." Either you are ready to make permanent lifestyle changes that will help you reach a healthy weight or you aren't. This is a life long journey where you will learn to make better choices, you will plan for splurges and celebrations, you will have good days and bad. Once you find the right eating plan (aka diet), and start feeling and seeing the results of your efforts, you won't be as tempted. If you truly can't resist overeating. consider getting help for binge or emotional eating. People who've learn to use food for emotions comfort need to address those issues before they can be successful with other lifestyle changes.