“Dieting” usually has too broad a set of parameters. You need a control. And if you have a goal and you’re paying attention, you’ll probably see an improvement over not having a control and eating freely.
Health, over the long term, may be more complicated but having a lean body mass makes health easier to achieve than not having a lean body mass.