Having exactly zero experience with opioids or cocaine, it is my understanding that the addictive properties of the two classes of drug are very different, and that the addictive properties of opioids make them much more difficult to quit.
I could be wrong on that, but this is my understanding.
Not all substances have the same additive qualities, but we all have the same ability to “Just Say No!”