Star Trek in particularly the first two series was monster of the week sort of stuff. The best episodes tend not to follow the beam down get in trouble get out of it template. But I think the best follow the 'living someone else's life' Quantum Leap template
Looking at the top 20 rated episodes from imdb https://www.imdb.com/list/ls076657706/
20. Star Trek: Voyager (1995–2001)
Episode: Scorpion (1997)
19. Star Trek: Voyager (1995–2001)
Episode: Blink of an Eye (2000)
18. Star Trek: The Next Generation (1987–1994)
Episode: Tapestry (1993) -QL
17. Star Trek: Deep Space Nine (1993–1999)
Episode: Call to Arms (1997)
16. Star Trek: The Original Series (1966–1969)
Episode: Space Seed (1967)
15. Star Trek: The Original Series (1966–1969)
Episode: The Trouble with Tribbles (1967)
14. Star Trek: The Next Generation (1987–1994)
Episode: Cause and Effect (1992) -QL
13. Star Trek: The Original Series (1966–1969)
Episode: Balance of Terror (1966)
12. Star Trek: The Next Generation (1987–1994)
Episode: Q Who (1989)
11. Star Trek: Deep Space Nine (1993–1999)
Episode: Duet (1993)
10. Star Trek: The Next Generation (1987–1994)
Episode: The Measure of a Man (1989)
9. Star Trek: Deep Space Nine (1993–1999)
Episode: The Visitor (1995) -QL
8. Star Trek: The Next Generation (1987–1994)
Episode: Yesterday's Enterprise (1990) -QL
7. Star Trek: The Original Series (1966–1969)
Episode: Mirror, Mirror (1967) -QL
6. Star Trek: Deep Space Nine (1993–1999)
Episode: In the Pale Moonlight (1998)
5. Star Trek: The Next Generation (1987–1994)
Episode: The Best of Both Worlds: Part II (1990)
4. Star Trek: Deep Space Nine (1993–1999)
Episode: Trials and Tribble-ations (1996) -QL
3. Star Trek: The Next Generation (1987–1994)
Episode: The Best of Both Worlds (1990)
2. Star Trek: The Original Series (1966–1969)
Episode: The City on the Edge of Forever (1967) -QL
1. Star Trek: The Next Generation (1987–1994)
Episode: The Inner Light (1992) -QL
8 of the top 20 marked here with -QL and 6 of the top 10 involve someone else's life or a parallel universe.