If the desired outcome is an improved quality of life, exercise has a plethora of mental-health benefits [0], cardiovascular and energy improvements[1], and has negative correlations with some of the risk-factors of obesity, like type 2 diabetes, high blood pressure, and some cancers [1][2].
I would hate for someone to read the common response and conclude that since obesity is causing their problems and weight loss seems more affected by diet changes, that exercise doesn't matter and can be safely skipped. To have a different life a lifestyle change is needed.
[0] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1470658/ [1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6172294/ [2] https://www.mayoclinic.org/healthy-lifestyle/fitness/in-dept...
Running a 5k doesn't even burn 500 calories for most people, but you can eat that much in snacks without a second thought. To really make a difference in weight the much more important side of the equation is intake.
Research had came out indicating that exercise doesn't really do much good in losing weight. Might help in maintaining weight.