The mirror universe, transporter accidents, other parallel universes, time travel, cloning technology operated by unscrupulous doctors and scientists, the holodeck...the list goes on and on.
The “would you fuck your clone?” question is so uncomfortably real in Star Trek because of the Mirror Universe.