If you're talking about the Biden administration's student loan forgiveness plan, I think you've been a bit misled about the "lawyers/doctors" part - you have to be making under $125k/yr ($250k/yr if filing as married) to qualify for forgiveness, and the vast majority of eligible loans are undergraduate, not graduate. So it would likely be extremely rare for well-paid doctors or lawyers to have their loans forgiven through this program - unless they were working in lower-paid positions (think rural doctor or public defender - arguably exactly the type of roles we should aim to encourage people into with programs like this!)