only way for me is to listen to the thought give it all my attention take it seriously for a few moments then say “you’re just my ocd” and then i decide to ignore it after that   doesn’t always work but this has helped