Uhhh... perhaps the best solution would be to masturbate while solving problems of algebra, just to make sure to avoid the sin of superstimulus. (Unless algebraic equations count as superstimulus too, in which case I am doomed completely.)
This whole topic feels extremely suspicious to me. We have two crowds shouting their messages ("masturbation is completely safe and healthy, no bad side effects ever", "porn is a dopamine addiction to superstimulus and will destroy your mind"), both of them claim to have science on their side, and imagining the world where both are correct does not make much sense.
To be honest, I suspect that both crowds are exaggerating and filtering the evidence. I also suspect that the actual reasons which created these crowds are something like this -- "Watching porn and masturbation is something that low-status males do, because high-status males get real sex. Let's criticize the low-status thing. Oh wait, women masturbate too; and we can't criticize that, because criticizing women would be sexist! Also, religion criticized masturbation, so we should actually promote it, just to show how open-minded we are. But porn is safe to criticize, because that's mostly a male thing. Therefore masturbation is perfectly okay, especially for a female, but porn is bad, and masturbation with porn is also bad. Other kinds of superstimuli, such as romantic stories for women, don't associate with low status, therefore we should ignore them in our debate about the dangers of superstimuli. Let's focus on criticizing the low-status things."
Romance novels are low status. They just aren't as low status as porn.
If it's worth saying, but not worth its own post (even in Discussion), then it goes here.