That illustrates one of the few good traits of capitalism: discrimination pushing you to miss on good candidates (women, people of color, LGBTQ+ people, etc) is a drop in profit that can be exploited by other companies and that, thus, should disapear with time (at least in theory, in practice not all companies act as rational capitalists...).