كَانَ زَيْدٌ هُوَ أَفْضَلَ مِنْ عَمْرٍو.
Kāna is a defective past verb; Zayd is its nominative noun; huwa is the separating form; afḍala is the accusative predicate of kāna; min ʿAmrin supplies the comparison.
The predicate stays accusative because of kāna; the intervening pronoun does not change its governing case.