It’s not research production that matters; it’s quality and impact in the sub field. And even the best researchers don’t translate to great teaching. Or even access to these profs, as an undergraduate.
For kids with a drive in a particular area, I do recommend checking how active a college’s profs are- and in what topics. But that’s more thna ranking by quantity a dept produces.