The doctrine of election is different than partiality, D.A. Carson in his book, For The Love of God: A Daily Companion for Discovering The Treasures of God’s Word, explains that we should never get the two mixed up, as many do when they label the doctrine of election unfair. Carson explains:
Never confuse election with partiality. Partiality is favoritism that is corrupted by a willingness to pervert justice for the sake of the favored few; election chooses certain people out of God’s free decision and nothing else, and even then justice is not perverted: hence the cross.