RATIONALE: Antiemetic drugs, such as aprepitant and ondansetron, may help lessen nausea and vomiting caused by opioids. It is not yet known whether aprepitant is more effective than ondansetron in treating nausea and vomiting caused by opioids in patients with cancer.