Layoffs are financial and political decisions. Sometimes people layoff idiots when given the chance, other times they layoff the smartest people to protect their friends. I consulted at a bank where a SVP would reorganize non-core business units into his org specifically to meet his reduction target while minimizing business impact. Those people were cannon fodder from day 1.
Hiring is the same way. If you only hire pristine resumes without gaps, you’re selecting for survivors - not the same as performers. It’s more of a statement about the hirer-er than hire-ee.