Earlier quoted context omitted.
The AMA also argues against prescription rights for other health professionals like pharmacists (who often have much more in-depth education on drugs)
What do you have to do before you prescribe a drug? Make a diagnosis, which is what is taught in medical school and not in pharmacy school. Pharmacists are frequently embedded in care teams in hospitals and primary care clinics where they make medication recommendations and know how to get drugs approved by insurance companies (sad that this has to happen...).
you are correct, doctors should stay in their lane and diagnose and leave treatments to others