A compulsion is basically a habit.
An obsessive compulsion is a habit which you obsess about.
OCD is a disorder formed from being obsessively compulsive.
The disorder is because the obsessive compulsion creates a problem with the order of life.
In other words, it gets in the way of normal life.
You can have a compulsion for the number five.
You might collect five of things, five newspapersm five dolls, five pennies, etc.
It becomes obsessive when you fell you must have sets of five.
You remove one beer from a 6-pack, you toss three pennies if you have eight, you must buy three for $5 deals.
It becomes a disorder when you must close a door five times before you can let go of the door handle. While you were stuck there, closing the door, something else needing your attention was not getting your attention and it results in something in your life being wrong or in disorder.
Like any compulsion (habit), like any obsession, OCD can be fixed/changed by one's own mental discipline. The problem comes when the sufferer does not understand how to gain their own self-discipline. Nobody else can make them change how they think. It can only be done from within.
All this hand washing and mask wearing must be driving any people with this crazy
People suffering from OCD would likely work the hand washing into their obsession so it fits. Its entirely possible tho, someone suffering from OCD would not be affected by it because many with OCD have very precise obsessions. If it did cause disorder in their lives, they would accomodate it just like their other disorder obsessions.