Interesting takeaway: going forward I'll always ask the pharmacy if paying out of pocket would actually be cheaper than using my insurance and paying a copay.
Some pharmacies already compare the prices, actually, and when the drug is cheaper than your copay, you just pay the lower amount. At least the pharmacies I've been to in Indiana were like that (CVS mostly, but sometimes Walgreen's).
The price they quote you may be their cash price, which will often be higher than your copay. You can also check which free PBMs they accept and see what those prices are.