A final point: these are particularly obvious examples, but real life ones can be much more insidious.
There's been cases where AIs have done cool/horrifying things to circumvent anti-biasing.
One great example was an AI that was "blinded" against race when making life changing decisions.
Horray! We fixed the racism problem!
But alas...