Ondansetron is a drug used to prevent nausea and vomiting caused by cancer chemotherapy radiation therapy and surgery. Ranitidine is a drug used to reduce the amount of acid produced in the stomach and is commonly used to treat conditions such as gastroesophageal reflux disease (GERD) and ulcers.