I assume counting the number of ribs is not what is meant …
https://news.mit.edu/2024/study-reveals-why-ai-analyzed-medi...
“We found that even state-of-the-art models which are optimally performant in data similar to their training sets are not optimal — that is, they do not make the best trade-off between overall and subgroup performance — in novel settings,” Ghassemi says. “Unfortunately, this is actually how a model is likely to be deployed. Most models are trained and validated with data from one hospital, or one source, and then deployed widely.”
I have no clue how an AI may find the gender (which is in the mind) of someone through x-rays alone.
The more recent and somewhat controversial concept of it being an identity isn't the only sense of the word.
It used to be the case, yes, I agree, but these days people are referring to gender identity when they talk about gender, IME.