Both baths and showers are okay for you and get you clean but showers get your body much cleaner unlike a bath where you're basically sitting in your own filth.
You still get somewhat clean in a bath but you get much cleaner taking a shower since all the dirt and everything else that is on your body gets washed down the drain as you're cleaning yourself off.
With a bath the water and dirt and everything else just stays in the water and is still in contact with your body.
I sometimes like to relax in a bath after a long hard work day or when my back is hurting but most times I take a nice hot shower which makes me feel much cleaner.
So showers win out for me when it comes to whether a bath or shower is better it's the shower that's better for you in my opinion.