Plavix (clopidogrel) is in a class of medications known as platelet inhibitors. Plavix is used to prevent heart attacks and strokes. Plavix works by stopping the blood clots from forming that may lead to a heart attack or stroke. Aspirin is in a medication class called salicylates.