Here’s a great article about where OCD and perfectionism differ and where they intersect.
“The terms obsessive compulsive disorder (OCD) and perfectionism tend to be used interchangeably to describe an individual who desires order, is goal-oriented, and has high personal standards. However, there are several important distinctions. To start, OCD is a diagnosable mental health condition, whereas perfectionism is a personality trait. That said, perfectionism can be a trait seen in OCD.”
I encourage you to read the rest of the article at https://www.choosingtherapy.com/perfectionism-and-ocd!