I agree, the decision over what to prescribe is between a patient and their doctor. The pharmacist has no business deciding whether or not that decision is correct.
No - pharmacists have a vital role in ensuring that the correct prescription has been written, both in the UK and in the US. Google "medication error" for details, but don't discount pharmacists as some kind of bean counters who just put the pills in the pots on request
The pharmacist also needs to ensure that the prescription meets the rules of the NHS (in the UK) or the insurance company (UK or particularly US). One of my family members has to take a very expensive medicine because he has serious reactions to the more commonly prescribed, significantly cheaper alternative. About 1/3 times he has taken the prescription to be filled, he has to wait while they phone the GP surgery to confirm that X is to be dispensed, not Y. Similarly, I was prescribed retinoids in the US to treat my acne, but I could never get it filled the same day, I always had to return two days later to collect it because as well as treating acne it can be used for cosmetic purposes (reducing wrinkles) and the insurance company would cover the medical use but not the cosmetic use, and insisted on authorising every single dispensing of the drug.
So yes, the pharmacist was right to pause on whether the correct prescription had been written (female hormones for an obviously male patient; first time ever getting this prescription). But they should have spoken discreetly to the patient and / or called the doctor to confirm that it was correct. It's not a conversation to be had in public in front of other customers