Even if everything else failed, aren’t there always supposed to be real humans in charge of navigation, not just depending on technology?
These accidents are due to inexperienced officers who are also overworked by the current demands on them. They just have not been properly trained as seaman. You really don’t need anything other than experienced officer and the mark 1 eyeball to keep a destroyer clear of a collision.