The planet-killing "Doomsday Machine"

Determined to destroy the deadly machine,
Captain James T. Kirk pilots the badly damaged
U.S.S. Constellation down the 'throat' of the giant robot ship,
beaming out mere moments before it explodes,
thus saving a good portion of the galaxy -- and himself.