Phamacist vs Docrtor

What is the better career to pursue Doctor vs Pharmacist

8 years in school for each but with a few years in residency, you can write scripts rather than fill them. And the economic upside is significantly higher as a doctor. Do you know many pharmacists? Any of them happy? As a lot, I have never met a less happy group of people than pharmacists.