Since it sounds like you've had a religious influence in your life, that can often be a source of shame or guilt when doing something like masturbation. Do you think that's playing a role here? Too, since dysphoria is also in the mix, do you feel like that disgust is attached to your body and how you feel about it? Or is the dysphoria sort of separate from the disgust?
So, with the enormous caveat that I'm not a religious scholar (for your own reading, I'd start with Dianna E Anderson;s work or with Emily Joy and Hannah Boning of Impurity , there are a few ways to reframe that verse on lust. One is that some religious thinking, and honestly some secular thinking, views any kind of thought or fantasy as being an automatic precursor to action; if you think it, you're more likely to do it. But what we know about the reality of human sexuality and fantasy is that fantasizing about something doesn't make a person any more likely to engage in that action. Some people use fantasy to explore things they may want to try in real life, others use it as a way to explore things they know they'd have zero interest in actually doing (and most of us do a mix of that). Does that make sense?
Similarly feeling attraction, including sexual attraction, isn't inherently sinful in my opinion (and the opinions of lots of others). Really, the only time lust is an issue is if it leads us to treat others as objects rather than as people. In other words, if it makes us think that our desire for that person trumps their boundaries and autonomy (honestly, the whole framework in that verse is, to me, more objectifying than fantasizing about someone is because the commandments it draws from treat women as the property of their husbands).
Too, I've heard some religious folks talk about sexual desire as a positive thing, as one form of many available to us of appreciating the beauty the divine put into the world, which is kind of a cool idea.
All that being said, if fantasizing about real people doesn't feel comfortable to you for religious reasons, or any reasons, right now, you don't have to fantasize that way. In fact, this article offers up ways to explore your fantasies on your own terms and find ones that do allow you to experience them comfortably and without shame: How to Approach Sexual Fantasy and Desire on Your Own Terms