The alternative is policies that make sense. If the goal is safety and not just saving their own *advertiser censored*, then the airline industry, like many others, would encourage mental health treatment. Instead, encouraging people to hide it by making treatment of it punitive, puts the rest of us in more danger, not less.
Depression doesn't make someone dangerous and neither does anxiety. Yes, there will be pilots who have mental illness, just as there will be drivers on the highway who have mental illness. Or bus drivers or Uber drivers or doctors or paramedics or lifeguards or police officers or teachers or chefs. Every day, we encounter people whose mental illness could affect us in one way or another. The fact that some are not getting treatment for it is what should scare the crap out of us, IMO.
These policies are for one purpose only -- avoidance of liability and bad press by these industries and companies. And that's fine. They're a business. But I think they should be honest about it. They put us in MORE danger with their current policies. JMO