There's a huge difference between discrimination done by the government and discrimination done by private individuals or entities.
Yes, but it's not difficult to manipulate one into the other. A clever government can have significant control over apparently private entities.