Re: Companies probably aren't doing this to discriminate
They are doing it to maximize their advertising dollar.
Whether that is the motivation or not behind it doesn't matter. You can't choose to disobey a law because following it would cost you more money. (Well, OK, you could, but you'll have to face the consequences of doing so if caught).
They need to find a way within the law that is the most cost-effective.