I was a pharmacist and grabbing a brand when a generic is available never happened unless a patient requested brand specifically.
This is pretty much a non issue at most pharmacies.
Besides, insurance claims come out with a rejection if you select brand when generic is available.
The only way I see this as even applicable to real world is if it is a cash paying customer and the pharmacist is trying to make as much money as possible which would mean it would need to be a private pharmacist owned pharmacy… even then that is a stretch
The other misconception by many patients is that they think there is a generic available for every brand drug. That is not the case. An example would be the Viagra, Cialis and Levitra family (PDE5 inhibitors). No generics yet. Viagra will be the first to go generic but they pay attorneys lots and lots of cashola to delay and road block the end of life of patents…. it is supposed to be a 20 year patent life from the time it is approved during benchwork prior to trials. By the time trials are performed etc the drug company typically may only have 8-12 years of protected rights to selling the drug without a generic. However, this timeframe is often extended with Pfizer, Merck etc bullying the generic companies in court, etc, etc. Every day of delay means millions for the popular drugs