Some interesting points here and always something to learn.
I am pretty sure racing rules talk about right of way.
And COLREGs talk about stand on vessel.
Either way both say both vessels must do anything possible to avoid a collision.
Which is where it gets difficult. As a starboard tack boat that has the right of way what point do you change course to avoid a collision.
When its too late is normally the answer. But you did something to avoid the collision so you get away with it. If you just plow into them and say I was on starboard you don't get away with it.
The definitions in the racing rules are worth reading. Top tip from a friend.