No one says you have to use the AI models stupidly.
If it works poorly for black women and female women dont use it for them.
Or simply dont use it for the initial diagnosis. Use it after the normal diagnosis process as more of a validation step.
Anyways, this all points to the need to capture biological information as input or even having seperately models tuned to different factors.