Lately I've seen a lot of people using "Star Trek ending" as a shorthand way of saying "cheesy 60s ending where all the characters get together and laugh at some shitty one-liner until the freezeframe in order to wrap things up with a neat breezy bow" and, well. They're not wrong... but that's only half the episodes.
The other half of the episodes end you staring at the TV in haunted existential silence because the story's thesis was "Don't delude yourself that waging war with technology is any less brutal than committing murder with your bare hands. You are a mortal and an animal like any other and if you think you have a justified reason to kill you had better be prepared to face your enemy, and recognize him as an intelligent equal, and smash in his skull with a rock."
This is the episode, by the way.
The one we all laugh at for looking silly and awkward and dated because the fight choreography is terrible and the man in the rubber costume clearly can't see through his mask.
And yes, it is those things. But by that point in the episode I was so enraptured and distraught by the premise of the story that I genuinely wasn't seeing the meme.
Through voiceover Kirk reminds himself, and us, that despite its appearance, the Gorn is also a starship captain-- a being just as clever as Kirk, and just as desperate to save its crew. They're being forced to fight to the death with sticks and rocks, and the loser's ship and crew will be blown up.
And the show demands: Why is this so appalling to you? Ten minutes ago they were chasing each other in starships and shooting each other with lasers. Ten minutes ago Kirk was willing to risk every life on the Enterprise by pushing Warp 8 in order to catch and destroy the Gorn. It was righteous. You were cheering for him. Don't you dare be appalled that now they're being made to beat each other to death with bare hands, that the crewmembers who didn't participate or even get to choose their own course of action will be executed just because their leader lost. This is what battle is. This is the brutality of war when you don't get to dissociate behind technology. Is it still worthwhile?