Boats have had a higher level of autonomy than cars for a while. In the early 2000s you could plot a course on a computer and that software would navigate that course, avoiding some (charted) obstacles and the like. See: https://www.sperrymarine.com/integrated-bridge-system (sorry for crappy product page)
One thing ships have is tons of redundancy. You can always go one level lower in control. Go from the charting system picking heading and coarse down to you setting heading directly via an autopilot. You can go from that to rudder control. Down all the way to manual control of the rudder.
That kind of redundancy, plus a trained and alert crew, make a world of difference and seems quite different than the car world.