A servant who deals wisely will rule over a son who acts shamefully and will share the inheritance as one of the brothers.
Proverbs 17:2 ESV

Faithfulness is worth more to God than lineage. A physical descendant of Jacob can be cut off for his betrayal and a gentile grafted into his place because of his humility.