Has anyone studied career satisfaction among licensed doctors versus unlicensed software developers? It seems very common for doctors to feel locked into a choice they now regret. In equilibrium a barrier to entry benefits the marginal successful entrant not at all.
these are people who go to medical profession for money and prestige.
same regrets exists among engineers who go to CS for money and faang jobs, and then realize how miserable they have become in the process of chasing the gold