i've been diagnosed with anxiety and depression and i'm a man.
it later turned out that i had a pinched nerve because i had the flu that bad. i still have only about 60% use of one of my arms.
Respectfully, you're probably more of an outlier if you're a man who's been misdiagnosed (although no doubt there are many men who've been misdiagnosed, medicine often seems like more of a guessing game, guessing, ruling things out, guess again, etc).
Medical professionals misdiagnosing and/or gaslighting women is a known phemonenon. There's even a term for it, in relation to symptoms of heart attacks in women, 'Yentl Syndrome'.
Women are so much more likely to have their symptoms minimised or dismissed or to be misdiagnosed. Women are often written off as having mental health problems when they have physical medical conditions.
Personally speaking, I spent around a year writhing around in agony with painful periods, until my then boyfriend accompanied me to a GP appointment and told my GP that my pain and symptoms weren't 'normal'. I then got a referral to a gynae, laparoscopy with camera, diagnosis and treatment.
Often, doctors do not believe what a woman is telling them about her own body and symptoms and experiences, they have to have confirmation/opinions from the woman's male partner/family member before they will take it seriously.
Can you imagine going to your doctor and telling them 'I'm in a lot of pain and experiencing xyz symptoms' and they fob you off for months and months until your partner accompanies you and they tell your GP 'she's in a lot of pain, she's experiencing xyz symptoms' and all of a sudden, because a man has described your symptoms relating to your body, it means that there's something wrong that needs further medical investigations?