One of the closest times we came to nuclear annihilation is when a Soviet nuclear detection system malfunctioned and said the US launched a nuke. The human operator determined the system was most likely at fault and they decided not to do anything.
Neither are infallible but if a computer gets bad data it doesn’t know it’s bad data.