I'm quite sure that in nature snakes love sliding into a puddle of water on their own, so it's not that they hate baths- just their loss of control (no traction) or
improper water temperature that makes them want right back out when we force the issue; they shouldn't be forced to swim* either, so the water needs to be
shallow, not deeper than the top of their bodies & preferably a little less. A snake with stuck shed feels way better after a good soak to get rid of it, and I agree,
they get re-hydrated too.

*Unless your snake is suffering from "sausage butt" (needs to defecate & seems constipated): then putting them in a much bigger container (I use my bathtub)
where they can actually swim will really help things along. The swimming motion combined with hydration usually works "wonders", but you always need to stay
right there with them all the time. Snakes seldom stay where you put them- they've been known to explore other plumbing fixtures while in bathrooms & disappear
down drains, toilets, or into holes in the wall (or under the cupboards) that you forgot or never knew about.