It's interesting how a lot of people, even here (see the thread I linked), think Data is the real victim of the episode, not the poor girl who was used as a guinea pig in some kind of bizarre social experiment.
Edit: A great article on this episode that explains much better than I could what I want to say
“Men Who Hate Women”: In Theory
Oh no, not again.
I have to filet another Star Trek: The Next Generation sacred cow tonight. I hate doing this. But this one’s time is long, long overdue, ’cause “In Theory” is bad. Really bad. How bad? Well, in terms of gender, this is right down there in the same league as “Reunion”.
I think a lot of this has to do with how popular Data is and how he "can do nothing wrong". And Jenna, in contrast, isn't exactly popular, I've seen a lot of people calling her names for "using" Data (which is exactly what the episode intended - she's yet another female character who was written in a way that makes people go "ugh what an unpleasant woman"; TNG has a pattern there, just as much as it has a pattern of portraying female characters as stereotypes of either mothers or crazy stalkers/weirdos or sexy vamps or 'nerd girls'). Etc Etc. It's written by mostly men who projected their own weird dudebro ideas of what women are like on the female characters they came up with. But I guess this is a discussion for another day. Either way, "In Theory" is extremely cringeworthy, and the article there lists a lot of reasons as to why.