Are you referring to TNG's "Violations," and Enterprise's "Fusion"?
In Fusion, T'Pol is violated, and the episode is making a clear analogy to rape, but they are desexualizing it, into a sci fi format, and T'Pol doesn't end up in bed with the guy, she kicks him out, he says something to make her feel ashamed, then leaves. T'Pol ends up in sickbay from the mind meld. Archer confronts him later, and kicks him off the ship.
And in Violations, The Ulian creep violates a number of people, including Deanna, leaving them all in a coma. He invades Troi's mind, then Riker's who was investigating how Troi ended up in a coma, then Dr. Crusher's, who is also investigating.
Troi doesn't end up in bed with him either, and we find out at the end, that he set up the whole thing to frame his overbearing father, so his father could go to prison and no longer be in his way.