Generally, taking any "logical" approach to OCD is discouraged, because it's the logical parts of the brain that are getting tripped up in the first place.
However as someone who also likes to approach things pragmatically, I do think that at least having a logical understanding of what OCD is can be helpful. This is different than trying to "solve" OCD-related issues with logic, which is where you'll get tripped up.
In my opinion, the very question of "is this OCD, or is it real?" is a flawed question to begin with. That's because it is based on a misunderstanding of OCD (I should note that I'm not a professional in any way; this is all from my own research and experience with OCD, so just keep that in mind).
Contrary to what it may seem, OCD is *not* the thoughts themselves. It's not the topic or thing that you're obsessing/worrying over. People think that intrusive thoughts are a product of OCD, or in other words, you never would have those thoughts in the first place if not for OCD. But this isn't the case.
Simply put, OCD is the tendency to get stuck on thoughts that bother us. It's an extremely overactive alarm system that tells us something is wrong when really nothing is wrong. When you are bothered by a thought and try to avoid it, get rid of it, or disprove it, you trigger what's known as the "Ironic Process," in which unwanted thoughts arise more often. This process is present in all human brains, whether the person has OCD or not.
For example, let's say Mary and Joe go on a hike together. Mary has OCD, Joe does not. While standing near a cliff edge, they both experience the thought, "I could push my friend off right now and they'd die."
Joe, who doesn't have OCD, might be disturbed by that thought, but it doesn't bother him for long because he knows it's just a thought, and he's 99.999% sure he doesn't actually want to do it.
Mary, on the other hand, may actually be 99.999% sure that she doesn't want to do that either, but that 0.001% of uncertainty triggers her overly-sensitive alarm system. The thought legitimately seems dangerous to her, and she becomes fixated on it. Immediately she tries to "solve" the thought by focusing attention on it, thinking about it more, "testing" if she really wants to do it by picturing herself doing it...etc etc. This fixation does nothing but cause the thought to keep coming back.
When you think of it this way, you see that OCD didn't plant the scary thought into Mary's head, she just reacted to it in a way that made it seem much more important than it really was.
So rather than looking at thoughts or worries in this binary, "OCD vs real" way, look at them as "helpful or unhelpful." Every person alive gets intrusive thoughts that don't align with their values at all. Thoughts don't mean anything, whether you have OCD or not.