But Yale basically applies a filter function and attracts the top 0.01% of high school graduates every year (plus some less elite legacy students and DEI admits). When you hire a Yale graduate, that's what you are paying for. Not the Yale education. If you could find a similar filter function some other way, you'd hire that 0.01% of high school graduates via that filter function.
And in fact companies are always trying to get ahead of their competitors and find other, less well-known, filter functions to get high performers who others don't know about. In the 1980s and 1990s Microsoft was among the first to discover that Indian IIT graduates were products of an extreme filter function applied to Indian high school students (IIT grads are like top 0.0001% of Indian high school grads). For a long time Microsoft hired those engineers for cents on the dollar. By the 2000s though, the word was out ... hiring IIT grads is as difficult as getting any other high performing grads.
There was also a brief period of time when Google had an edge in recruiting by identifying high school kids who were good at programming competitions online and via contributors to projects in Google's open source projects. But now, that signal is well-known too.
So John's community college degree doesn't matter if John is an elite performer.