I agree on the publication record. But the school you go to has a huge effect on your ability to publish. This is well documented.
Go to top PhD program -> publish top journal easier -> attain tenure track job.
It all comes down to prestige in the end. This is aside from very hard sciences where true ground breaking results cannot be ignored.