Was the one who got tenure the one who brought in bigger grants? Unfortunately in the R1 Universities these days that is probably the most important thing, even more than your academic family tree https://academictree.org/
Want a top 5 TT job? Find 10k followers. There are other paths but this is by far the easiest