Both cocaine and caffeine are central nervous system stimulants that increase alertness, heart rate, and blood pressure by affecting neurotransmitters in the brain. The similarity is in their stimulant classification, though cocaine is far more potent, addictive, and dangerous.