Divergent. It's okay to excuse racism, as long as it might be true.
Basically, the city is split into 5 factions, each representing different values. Selflessness, bravery etc.
The main character's dad distrusts Erudite, a faction based around knowledge, because they want too much knowledge...