In boats large enough to have multiple people on them, there is going to be a head available (in the US it's part of a tax loophole), but people still pee off the side. If you do so the other people on the boat very much appreciate you using the leeward-most part of the boat, where rigging is not always available.
If you heave-to whenever someone needs to relieve themselves, you get a double bonus - a smoother motion in the water and rigging to hold on to.
I forgot at what course I used to do it. Possibly several, but yeah, always leeward of course. But even at regular beam reach[0], you can still stand between the sail and the shroud[0]. At broad reach[0] or running downwind[0], you can also use the fore stay[0].
[0] I have no idea what the English words for sailing terms are, so I'm googling all of this. Hopefully correctly.
If you heave-to whenever someone needs to relieve themselves, you get a double bonus - a smoother motion in the water and rigging to hold on to.