There have been quite a few lawsuits around related subjects. Facebook got sued because their targeting of ads allowed people to do things like target jobs to only men [0], or only to certain ethnicities [1], etc. Certainly, in some cases, targeting gender makes sense, but allowing it across the board gets a little scary.
0: https://www.vox.com/2019/3/21/18275746/facebook-settles-ad-d... 1: https://www.wired.com/story/facebook-advertising-discriminat...