The sliver of truth is that Google's once-or-twice-yearly performance evaluation system asks colleagues to stack rank folks they are reviewing. I wish they'd get rid of it, but it's not used for much. It's only a partial order of folks they're reviewing, nothing really enforces that people actually do it, I suspect some people just rank all the people trying for promo this cycle above the people who aren't, and the many reviewers' stack ranks are never reconciled into one authoritative stack rank of the folks in a group. I don't know why it's still around.
I think you may be confusing the stack ranking at google, that doesn't result in dismissal (Google were in fact, right up until Covid, still on a hiring spree with a shortage of engineers); with what Microsoft historically did (and stopped doing in 2013).
If the company high prioritized environmental concerns, stack ranking would reward those who figured how to keep products in service longer.
Google stack ranks employees regularly. Lowest of a group is always fired. Doesn't matter how good you are or how much satisfaction you give to your customers, you're basically asked, "what have you built that could be the next billion customer thing?" If you're not answering how you're part of the next big thing, you're going to lose. So, once something is acquired or released, consider it deprecated.