Self-supervised foundation models mitigate bias in histopath