I noticed a substantial similarity between Stargate SG-1 episode Collateral Damage and a Star Trek - Voyager episode Ex Post Facto.
I won't go into details describing the episodes to avoid having spoilers, it is possible to see the plot on the linked wiki pages. It is sufficient to say that I practically knew the entire plot of one just because I previously watched another.
Is Stargate episode meant to be an homage to the Voyager episode? Maybe both shows were basing the script on another older story? Or is it just a mere coincidence?
Parts of the plot that apply to both episodes:
1
Paris/Cameron goes to an alien world in order to exchange some technology. In Voyager it was some spare parts they needed for the ship, in SG-1 it was the memory device itself.
2
He cooperates with a distinguished elderly scientist who invites him to his home.
3
The scientist has a beautiful wife who tries to seduce our main character.
4
They share a drink, he passes out. THe next thing he knows is that the scientist is dead and he is the main suspect. No one on the planet believes him, but Voyager/SG-1 team are doing their best to prove his innocence.
5
Additionally, there is a memory recording, playback and manipulation technology, which is used on the accused character. But, as you can see that tech is far from being the most important part of the plot which is similar.