Firms can do uniform pay cuts (say 2%) instead of targeted layoffs. That way all employees are in it together, and yet there's still market discipline in whether to cut.
The premise of your quip is nonsensical, since people are let go anyways. You wouldn't know that you were the marginal human that was cut because we are in inflation or not.