I think adding in rape to the discussion is just side-stepping the actual topic, as rape is largely considered a ‘legitimate’ element in fiction while healthy expressions of human sexuality are considered puerile jack-off material.
Ah, sorry, I'm the one who brought it up. But, rape scenes aren't considered a legitimate element in fiction by large swathes of people. In fact, it is one of the main complaints of those fans who talk about too much sex in SFF -- that there are all these violent sex scenes where women mostly, but occasionally men, get raped or engage in violent sex and that these are put there by the author to shock and titillate readers, that it is not legitimate to show rape, and in doing so, encourages the idea that it's okay.
Of course, the counter-argument is that it's usually doing just the opposite, excluding something like Gor, where once you accepted the bondage mindset of the world, the stories were sort of interesting. But most times, the inclusion of rape and similar awfulness is used to show it as a bad thing, a destructive thing, a hurtful thing. It is that which makes rape scenes slightly more acceptable to some, but consensual sex is then seen as purely sensual and meant to get readers off. Others see both types of sex scenes as perfectly normal. A minority seek sexual content out, not so much to serve as porn, as that they feel stories are only good when they are violent, gritty, etc., and therefore should show sex and rape to be realistic for those readers.
The amount of sex in most novels that are not erotica is pretty minimal, including romance, which has whole branches where the couple does no more than kiss still before becoming engaged to marry. It has actually decreased since the 1970's and early 1980's, where you could say there was a sex peak. Only a few SFF authors, like Laurell K. Hamilton, go to town with sexual content, and that's because she made sex part of her magic system. Her characters are actually fighting magical battles through sex, which is certainly related to a lot of 1970's SFF. (And she started doing more of such content, working it into the story, because she was told as a female author, she shouldn't write about sex and violence.) Bakker really isn't even in the running -- he just does a few shocking sex scenes.
But there is the reputation of SFF -- what were all those boys doing, back in the day, wanting to read this stuff -- it must have been to read about sex with alien babes and sex with elves; why do women want to read about tough magic users solving mysteries and danger dealing with vampires and werewolves -- it must be to read about sex. Why do girls like Twilight (even though there are no sex scenes in it) -- it must be because it arouses their sexual passions. And so forth and so on.
We have dedicated SFF fans, I discovered in a cover art discussion, who still believe that the category market is riddled with covers of half-naked women clutching muscled men, but nobody could find an actual cover to bring me, except a couple that were SF novels doing homage to pulp like Saturn's Children -- and that didn't even have the clutching thing. These fans aren't seeking out sexual content in SFF, but they are quite convinced many other perv fans are, and that many SFF authors must be out there catering to them with the help or insistence of their publishers. And some fans are just a bit confused by the marketing pitches for paranormal romances, which make them sound a lot more sex-filled than they are usually.
So it does effect things. There are some fans who won't read your book because it has a sex scene in it, even if it's a consensual sex scene between adults who are married to each other. But then again, there are some fans who won't read your novel because it doesn't have a sex scene in it, because they don't consider it realistic. So again, sex scenes (and rape scenes,) become a tool and the question is, do you want to use the tool and need it for the story. If you do, how you write it involves a lot of different levels, because there are different layers of description and there is the word choice of how you describe things, of how much you do show, of what inner thoughts we may get from the pov character, etc. They are one of the hardest things to do, but they are doable. And funnily enough, on average, women write longer, more detailed ones than guys do, even the violent ones.