Generally speaking, a submarine cannot typically outrun an enemy torpedo outright, but submarines do use speed in other ways ...
Hundreds of sailors aboard HMS Queen Elizabeth are thrown into action when sonar operators pick up a suspected Chinese submarine shadowing the fleet. Every ping, every order, every heartbeat counts.