What is OCD really?
OCD is a cycle made up of two parts: an obsession, which is an intrusive, unwanted thought, image, or urge that causes distress, and a compulsion, which is a behavior or mental act done to reduce that distress or prevent a feared outcome. The compulsion brings brief relief, which reinforces the cycle and makes the obsession more likely to return.
This is why OCD tends to get worse with more compulsions rather than better. The relief a ritual provides is temporary, and it teaches the brain that the obsession was actually dangerous and the compulsion actually necessary, which strengthens the loop over time.