A PhD is not just a few classes. It is a deep apprenticeship to a noted expert in a field. Unlike most graduate degrees which have 96+% graduation rates, PhD finishing rates are very low.
I'll admit any PhD has its ebs and flows. There were many hard years during my studies. But overall, it simply is not worth 5+ years of your life to pursue something that you do not love to do.