This reminds me of the movie THE ENEMY BELOW (Robert Mitchum, Curt Jurgens) based on the novel and was the inspiration for STAR TREK II: THE WRATH OF KHAN's duel between the two starships.
LINK: https://www.military.com/history/time-n ... n=20231213