One could argue that almost the entirety of The Trouble With Tribbles has some of the best wry dialogue Trek ever did.
From Kirk and Spock's testng Chekov's knowledge - which starts with the Standard Chekov Russian Joke " Ivan Burkoff " "John Burke Ensign" "I could have sworn...."
Kirk's battles with Nilz Baris: "I have never questioned the orders or authority of a Federation official - until now" "I'll hold you in irons if you don't SHUT UP!!"
Even Spock getting in a juicy line:
KIRK: Cyrano Jones? A Klingon Agent?
BARIS: Yes, Cyrano Jones Didn't you hear me?
KIRK: I heard you!
SPOCK: He simply could not believe his ears!
But THE best and funniest scenes in all of Trek, past, present and future: the bar scene, the fight, and then the scene after with Kirk interrogating the shore leave party. Superbly played by all - including Korax mimicking Scotty's accent
SCOTT: Laddie....don't you think you should.....'rephrase that?
KORAX: Your rrrrright I shoood
and the incredible scene with Kirk and Scotty:
KIRK: So why DID you hit the Klingon Scott?
SCOTT: They called the Enterprise a GARBAGE SCOW......sir!
Two seasoned actors playing it straight, but still incredibly FUNNY...
Where they'll be no tribble at all.......
