The seagoing ship inside the harbour is restricted in it's ability to manoeuvre and has right of way over everything else apart from another ship unable to respond.
yacht needs to leave 500m when crossing in front, on starboard tack or not.
https://www.rms.nsw.gov.au/documents...s-brochure.pdf