Ubrelvy and Nurtec are prescription medications taken to treat migraines. Though they share similarities, Ubrelvy is for acute treatment, while Nurtec can be taken for immediate symptom relief.