At each stage, the purpose is the same - to prove that you are more deserving than your peers of a seat in the next stage, because each stage has fewer seats than the last.
If you value your present well-being over advancement (and therefore future well-being), don't put yourself in a competitive educational environment with the goal of "winning" (i.e. high GPA). If you have certain career tracks in mind, sleep deprivation, poor mental health, and low quality of life in the short and medium terms are table stakes.
I enjoyed my time at such a place once I had a good relationship with a tech company (now my employer) and no grad school ambitions. My friends headed for the sciences could not have optimized for their present happiness without giving up their dreams.