Once in the store you open the GoodRx app and in there is a discount code that they enter into their billing system that will give you the listed price in the app. Oftentimes I have discovered that the pharmacies keep a list of these types of codes (GoodRx is not the only one, just the one people know about the most due to advertising) and once I show them the app they will try a couple of other codes off their list and sometimes I will get a price that is even marginally cheaper (perhaps 5%) than the GoodRx price I showed them.
As to why I have to ask them to remove it, two reasons:
1: most people just assume insurance is always best, when it isn’t.
2: because lol USA healthcare, of course it only makes sense to do this with some of the meds I take and not others. My cholesterol meds are so cheap it doesn’t even matter whether they are insured, and some of my other meds are evergreened to hell and using insurance actually does help. It’s this third class of Expensive But With Actual Competition where this GoodRX stuff comes into play. So half my meds insurance pays for and the other half I pay out of pocket. lol USA healthcare
Goodrx is great, but it doesn't save money for the majority of insured (for the half of the country on better-than-average plans) and it doesn't bring down costs nearly as much as you'd want for expensive medications. Cycling manufacturer's coupons for expensive medications can match or beat insurance copays when Goodrx won't. (And you'll increasingly find some insurance actually apply a manufacturer's coupon rather than cover directly. I had this happen recently with a 90-day supply of Freestyle Libre 3.)
For generics the discount cards can often make the price lower than the prescription co-pay.