I have OCD and experience a lot of harm OCD (and I suspect I may also be borderline) and I can't relate to this more. Like you said, it's a desire that just sort of feels "right." I'm not entirely sure what makes these thoughts so persistent or why they feel the way they do, but it's probably trauma and my strong sense of self-loathing. Oftentimes I'll cave and self harm. It provides minimal comfort from these thoughts, so I wouldn't recommend it but I mostly do it for the hit of dopamine/feeling of euphoria which I understand is still very very unhealthy of me.
In my case, I can sometimes dismiss intrusive violent thoughts as "just" OCD. I tell myself these thoughts are just my silly mind playing tricks on me, that I don't REALLY want to hurt myself at this moment. Sometimes I believe it.
Other times I just "redirect" that anger to the future, in a way. I'm not sure how to explain it, but it's kind of like procrastinating on intrusive thoughts. I'll tell myself I'm not currently in a good situation to have these thoughts (maybe I'm trying to get schoolwork done or something similar) and that I can think about hating/harming myself later, once I finish what I'm doing. Of course, this doesn't always work and I will often just spiral into further thoughts of self harm/suicide but I've found it's just a process of figuring out what works and when.