If you want to lose weight you need to change the energy balance. Less energy in and more out. For most people it is difficult to meaningfully affect energy out. Unless you go from being really sedentary to running for an hour a day (~500 kcal) then energy out will remain roughly the same. Eating less is much simpler but not necessarily easier, most people need help suppressing their appetite. Probably the best way to do this is by doing high intensity exercise (HIIT). Studies consistently show this affects weight loss more than longer periods of moderate exercise [1]. In addition, exercise can improve depression [2] which may also lead to less over-eating.
[1] https://bjsm.bmj.com/content/53/10/655
[2] https://pubmed.ncbi.nlm.nih.gov/29800984/