I have been making some bad food decisions too. I had an epiphany last night about mine but let's start with yours.
When I try to diet, I track calories in myfitnesspal and plug in my. Urrent weight and age and say I'm sedentary then I add every bit of exercise I do throughout the day and eat back those calories. That way I reward myself for exercising. I went from walking and jogging a minute or two when I started two years ago, to running 60 miles in the last 12 days, and have also added rowing, push ups, a little weight lifting, yoga and assisted pull ups off and on because I want those extra calories.
I find it much easier to choose foods I like to eat that are healthy, nutrient dense and low calorie and plan to eat them every day. For me that's coffee, yogurt/skyr with strawberries, raspberries and blueberries in the morning, a whole microwavable bag of broccoli cauliflower and carrots, and some kind of lean protein like chicken or shrimp. The raspberries in particular are loaded with fiber and the vegetables are good too, and the strawberries and blueberries have a ton of antioxidants and vitamin c among other things, plus it bulks up my breakfast and makes it feel like more food.
After that I have discretionary spending of like 550 calories. Some days that's some homemade fried rice, or an egg sandwich and some chicken tenders when I make my kid's lunch, or maybe pizza or chick fil a if I want a treat. If I do more exercise I have more discretionary calories. It works for me for months in a row before I get fatigued, take a break and start back up again. I'm currently in one of those breaks but trying to get motivated to start another push.
The other thing that helps is posting here daily regardless. I started a separate thread called let's lose some weight because I was posting too much in here and we've had some nice success stories come out of that one especially Corporation. It helps.
Good luck dude