There’s a difference between being a perfectionist, ie. someone who requires flawless results or performance, and having OCD. It features a pattern of unreasonable or irrational thoughts and fears (obsessions) that lead you to engage in repetitive behaviors (compulsions).
These obsessions and compulsions interfere with daily activities and cause significant distress. You may make up rules or rituals to follow that help control your anxiety when you’re having obsessive thoughts.
These compulsions are excessive and often are not realistically related to the problem they’re intended to fix. Symptoms generally worsen when you experience greater stress. Getting treatment as soon as possible may help to prevent OCD from worsening and disrupting activities and your daily routine.