One thing to notice
Ezekiel 34 arrives first, and it reframes everything Matthew 25 will do. God's indictment there is specifically against shepherds who fed themselves while scattering the flock — the powerful, not the negligent. By the time the sheep-and-goats scene opens, the sorting criterion isn't religious performance but whether anyone noticed the hungry and imprisoned. The two texts together make one argument: the shepherd king looks exactly like the ones being tended.