And not only this, but there was Rebekah also, when she had conceived twins by one man, our father Isaac; for though the twins were not yet born and had not done anything good or bad, so that God's purpose according to His choice would stand, not because of works but because of Him who calls, it was said to her, "The older will serve the younger." Just as it is written, "Jacob I loved, but Esau I hated." (Romans 9:10-13 NASB95)
Consider this, why does God choose Jacob over Esau, Judah over Joseph and David over Saul? Using our normal human common sense, morality, karma and justice, we would do it the other way.
Jacob and Esau
Why does God choose the one who cheat over the one who was cheated to be the ancestor of His chosen people Israel?
Judah and Joseph
Why does God choose the one who enslaved over the slave to be the ancestor of the tribe where the kings of Israel would come from? Wasn't Joseph exemplary his in conduct when he forgave his brothers who sold him into slavery? Why wasn't he chosen?
David and Saul
Why does God choose the one who committed adultery and murder over the one who did not to become the ancestor of the Messiah?
Me and many others better than me
While I was pondering over this, I remembered that God also choose me over many people who are probably a better person than me.
Meritocracy is not in the dictionary of God. Rather, God is merciful. In His mercy, He sent His only begotten Son Jesus to die for our sins so that we can be saved, even though we do not have many good works or worse, none at all. Theologians called this salvation by grace.
For by grace are ye saved through faith; and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. (Ephesians 2:8-9 KJV)
And those whom he predestined he also called, and those whom he called he also justified, and those whom he justified he also glorified. (Romans 8:30 ESV)