Are those algorithms actually doing the right thing? Most of mechanics are men, same for pre-school teachers are women...these are facts not discrimination or bias.
Like, if it was a bad idea to do, there'd be less reason to outlaw it, right? Since there'd be no incentive for companies like Facebook to do it anyways.