Dehydrating, yes and no. It is a common mechanism shared by antibiotics to keep bacteria from synthesizing strong cell walls as they multiply. Weak cell walls then rupture, spilling the cell contents out, resulting in the death of the bacteria.
Yours is a more complete explanation than I gave. Mine was shortened for brevity... and because my general point was that bacteria (outside of cooking and composting) is not a big enough threat to use various specialized products continuously... anti-bacterial soaps and lotions won’t prevent a single case of cold or flu... but most people don’t know that...