In Buddhism, the practise is called 'mental cultivation', which similar to OCD, repeatedly cultivates a Buddhist practise. For example:
What do you think, Rahula: What is a mirror for?
For reflection, sir.
In the same way, Rahula, bodily actions, verbal actions & mental
actions are to be done with repeated reflection.
MN 61
Therefore, when OCD keeps repeating the thought: "Its not good enough; its not good enough"; Buddhist practise would keep repeating the opposite thought in order to make the OCD thought subside, i.e.: "Its good enough; its good enough".
MN 20 states to replace an unskillful thought with the opposite type of thought, as follows:
When unskillful thoughts... arise in a monk through reflection on an
adventitious object, he should, (in order to get rid of that), reflect
on a different object which is connected with skill. Then the
unskillful thoughts are eliminated; they disappear. By their
elimination, the mind stands firm, settles down, becomes unified and
concentrated, just within (his subject of meditation).
Like an experienced carpenter or carpenter's apprentice, striking hard
at, pushing out and getting rid of a coarse peg with a fine one,
should the bhikkhu in order to get rid of the adventitious object,
reflect on a different object which is connected with skill. Then the
unskillful thoughts are eliminated; they disappear. By their
elimination the mind stands firm, settles down, becomes unified and
concentrated, just within (his subject of meditation).
MN 20