Earlier quoted context omitted.
That’s right, because the minute you say you’re taking it for mental health, you get managed out. I’ve personally seen it happen at one of the major food delivery startup, at one of the big social media companies and at Amazon. The steps are the same. First they pile on more work on you, then gaslight you in believing your workload is the same as a junior employee and/or is subpar, then take you on a journey of “help…
This is very different than my experience at another FAANG. One of my reports was able to take a multi-week mental health leave and return without any negative impact on performance rating or career. Of course, mileage probably varies from manager to manager and org to org.
Most places I've been at will suffer with known weak developers for a long time because a weak developer with domain knowledge is still more productive than many new developers without it and there's always the risk the new hire will turn out to be a dud as well.