Your question is a good one, I think. It seems to me that the two disorders are separated by pleasure and threat. By that, simply put, ICD functions on pleasure and risk, while OCD functions on a sense of threat.
Here's a good article on the subject:
Understanding the Differences Between Impulsivity and Compulsivity | Psychiatric Times