Ports require that a harbor pilot be at the helm when ships enter a harbor. The folks know the harbors they work in like the back of their hand. Now they are human and it's possible one could screw up, but the likelihood is pretty darned remote.
Steering on modern ships is pretty much "fly by wire". A computer failure or some other sort of electrical failure could result in loss of steering control. If that happens you are just along for the ride. No fancy rudder propeller or thruster manipulations is going to do much in the short term.
n 1978 the Atlantic Trader, well past its prime, lost it's steering in the main channel of L. A. Harbor. It hit the end of a floating drydock, which probably saved quite a few lives, they slammed into the bow of an FFG before tearing into the dock to which the FFG was tied. The amount of damage a ship, and the Atlantic Trader was what used to be called a coastal freighter, can do when it hits things is frightening.
The dry dock took the brunt of the damage. It tore off at least twenty feet. The dock was repaired by simply removing the last section. It effectively shortened the drydock, but that was the only economically feasible solution.
The FFG was struck in the bow just behind the sonar array. The ship was just about finished with an extensive refit. The cost to replace the bow section and the sonar array was more than the refit. But you have to hand it to the ship's damage control party. They got the watertight doors closed before the flooding could spread, and that was after they entered what was left of the space to check for injured folks.
I'll tell you this. If you have an emergency on land or at sea and need cool heads that can think, plan and execute when all hell is breaking loose, you want a USN damage control specialists.
Dock repairs were quite extensive because it below the dock were all of the utilities, water, fire water, electricity, acetylene, and sewage. The repairs took several months.