Both Zofran (ondansetron) and Compazine (prochlorperazine) are both medications used to treat nausea and vomiting. The two are different classes of drugs. Zofran is a selective 5-HT3 receptor antagonist. Compazine is a phenothiazine antipsychotic.