The only way to get the lesser benefit of therapy is to precommit to not report suicidal thoughts.
The greater benefit of "pilots honestly report their suicidal thoughts and then they are stopped from flying" is simply impossible to achieve, and if you foolishly try to get it anyway then you won't even get the lesser benefit.
you didn’t think that strong silent man stereotype came from nowhere, did you?
It's similar to telling your doctor about illicit drug use. Don't do it unless you really trust your doctor to (a) not take adverse implications from the disclosure and (b) not write it down anywhere. Chances of both (a) and (b) are tiny. So, just lie about illegal drugs when asked. Do your own work on making sure to avoid interactions between prescribed drugs and recreational ones.
Why do you think anonymous therapy isn't a thing? There has to be a reason, I wonder what it is...
This was (and still) a major issue flagged after the Germanwings suicide/crash.
https://www.reuters.com/article/us-france-crash-germany-conf...