This also holds for eg. age and sex discrimination - find out who they are, reject them for something else. Not being able to easily enforce a law doesn't mean one should break it.
Sounds like another lip-service law that European countries like to enact and then rely on the honor system for enforcement.
Even bigger question: how is it tracked what application was discarded and why?
Sounds like a well-intentioned eurocratic nightmare.