Just because the law says it, it doesn't make it so. There is at least one very big employer of pilots in the EU (or contract pilots) that has so few women at the controls, its embarrassing...
The law also says that employers shouldn't discriminate against age or youth or where you come from in the EU. Reality is oh so different. Sadly.