Why not both though.
Also, insurers would have incentives to mandate the $30 version since it means lower cost on their side and they don't even have to reflect that in insurance premiums (which they don't since they're competing with each other).
But 95% of the time, your doctor writes a scrip, your pharmacy fills the scrip, and if the sticker price is “reasonable” you pay and walk out.