Not at all.......actually these laws do rob the owners of the free will to target their market to a certain type of clientele.
If it is a local law, the business has the opportunity to locate in the adjoining community and let them receive the tax revenue.
Federal laws have a different effect. They force the owners to accept business from clientele they don't want (ie, religious apartment owners forced to rent to an unmarried couple or a homosexual couple).