What are you sailing? How quick can you get all the sails down?
In my little boat, a dock dead down wind is not a problem if I get the sails down in plenty of time. I will still have enough windage to steer but I will come in slow enough (and my boat is light enough) to keep it from hitting the dock by pushing off and pivoting on the bowline.
Newport 17 - "Kohanna"
At sea Darwin's hypotheses is the final arbiter of right of way.