The interview, and to a lesser extent the workplace, is a hostile environment where you are in direct competition with peers and management who try to get the most out of you for the least compensation. Anything you say or do will be used against you the second it is useful to undercut you in favor of someone else's payday.
Who do you think did better for Uber, the person who pointed out that it was technically illegal, or the person who pointed out that they could make a lot of money before the legal trouble materialized?
I've been at a company where that happened and the people who focused on data accuracy and brought that up in debates around prioritization got cut for not moving the business forward. As I got told, "if the customer is shown what they want to see (and they have no other source of information to compare), does it matter if it's accurate?"
In general though this idea that people should talk openly about their mental health problems is good for society and terrible for the individuals concerned. People will absolutely change their opinion of you and treat you differently, and they will never disclose why.