Not if the penalties harsh enough that a decent lawyer will take an average case on spec.
You need to remember the effectiveness of a law is penalty * odds of getting caught. You just need to make discrimination unattractive financially and provide some incentive to the parents to cover the risk.