Definitely lucky that there was someone like Kennedy in charge instead of someone like Nixon. I think the scariest part of the crisis, is neither the Soviet or the US leadership knew how close we were to going over the edge.
https://www.vox.com/future-perfect/2022/10/27/23426482/cuban..."The end in this case meant not just the fate of the submarine and its crew, but potentially the entire world. Cut off from outside contact, buffeted by depth charges, its air conditioning broken, and temperatures and carbon dioxide levels rising in the sub, the most obvious conclusion for the officers of B-59 was that global war had already begun. But the sub had a weapon at its disposal that US officers didn’t know about: a 10-kiloton nuclear torpedo. And its officers had permission from their superiors to launch it without confirmation from Moscow.
Two of the sub’s senior officers wanted to launch the nuclear torpedo. That included its captain, Valentin Savitsky, who according to a report from the US National Security Archive, exclaimed: “We’re gonna blast them now! We will die, but we will sink them all — we will not become the shame of the fleet.”"