This kinda sounds like “The Good Place”. Kristin Bell is a pharmacy’s saleswoman who wakes up in heaven and is mistaken for a lawyer. I haven’t actually seen the show, but I read the Wikipedia page and it sounds right.
Also, after a quick Google search, the Ariana grande song you mentioned is listed as being in episode 1. Hope that helps!
One of the big things I don’t see mentioned here is that while the “active ingredient” in the medication is the same, all the other stuff in it is not. This also includes the binding agents that hold the med together and also the release mechanisms that control how/when the medicine is absorbed into your body.
For example, generic extended release amphetamine salts don’t release into your body in the same way Adderall XR does, despite being the same medication. While the patent on the drug has expired, the patent on the proprietary release mechanism has not expired. So generics can’t copy it. This could cause the generic to not work as well for some people, or some people could have a reaction to those different ingredients.
Edited: fixed spelling