As someone who had recently been told by 'psychs inc' that it's OCD which is now at the top of the list of why I am the way I am, I wanted to try and reply to this.
Mine is a form of sexual-OCD (apparently) and as a result, I have to be careful about how the compulsive behaviour is expressed. Masturbation and porn - a cycle of despair that I'm still trapped in (through necessity) - doesn't help, and only makes the obsessive/intrusive thoughts louder and having more sickening sticking power. I try to sleep as a soulless machine going on standby, condemning myself for how disgusting I am, how weak and pathetic I am, and get used to this pattern.
My own personal experience may, or may not, be relevant, but sometimes the compulsions, as frustrating and distressing as they are, go some way to 'balancing' the distress of the obsessive thoughts, to the point where it all feels so pointless but a necessary means of survival.
I'm sorry that this probably comes across as unsupportive and fatalistic, but my own struggle has brought it home to me just how much the 'behaviour' wears you out, and for what? It's a painful, soul-destroying condition, a brain addiction that feels near-impossible to break out of especially, if like me, there is very little that can be done other than convince yourself that it won't claim your life.
I wish you all the best in your struggle and, hopefully, your recovery. But know that it is very real, you are not alone, and it will get dark and distressful before those chinks of light appear and it feels like you can breathe freely again.