So let’s reframe it as: should we expect people to tell the truth about things that mostly don’t matter at a personal cost of their entire career, and all training costs?
If you disclose, you are punished severely and may never go to work again with almost no recourse by a system which largely ignores medical science. If you withhold, as almost all pilots are advised by colleagues and the doctors themselves to do, nothing happens. (When I went for an aviation medical, the doctor said: I’m not your family doctor, only answer the question I asked. If I need more information I can ask for it)
When faced by a system so perverse is it really all that unethical.
Brainwashing alone does not an ethical system make. You generally have to act ethically in order to teach other people to do the same.