Knocking someone unconscious while swimming sounds difficult. I have a hard time imagining a situation where your energy is best spent punching the drowning person rather than trying to drag them ashore.
Knocking someone unconscious isn't exactly easy or reliable, especially when you're both in the water. If you really want them to pass out, you might as well start pushing them under water (or wait until they loose consciousness from drowning) or choking them.