What makes cocaine cocaine is the fact that its accidental shape happens to fit lock-and-key into the microscopic machinery of the reward circuits. The same goes for all four major classes of drugs of abuse: alcohol, nicotine, psychostimulants (such as amphetamines), and opiates (such as morphine):

