A beloved Star Trek episode quietly merged two earlier franchise stories into a mind-bending holodeck mystery about identity and reality.