That is exactly what true OCD is. I know this because I actually have OCD, and it sucks. Once when I was like 15 years old a thought popped in my head that if I didn't walk down the street and step on a particular section of the sidewalk 32 times my mother would die. Which meant I had to walk down the street and step on a certain spot on the sidewalk, then walk all the way back home and repeat this action 32 times in a row. Needless to say it took a while. Another time when I was older I took a different way home from work than my usual route, and later my mother called me and told me my father had to go to the hospital because he thought he was having a stroke. I blamed myself because I had changed up my normal routine. So I never took different way home from work again after that. I could list a thousand more examples, but you get the idea.
However, besides the negative thoughts I also have something of a compulsion to buy multiples of some figures that I really like. In fact, I sometimes don't even consider that I own certain figures until I have at least two or three of them. There are even some Batman and Spider-Man figures that I have five or more of, and I don't really know why, but It's not to sell them. Quite the opposite in fact. I would find it stressful to part with them. For example, I had seven blue Hush Batman figures (don't ask), and about a year ago I decided to sell one of them, and I almost immediately regretted it, and still do to this day. I don't know if it's OCD related or not, but it probably is.