I do not agree that this is a general consensus, given how much anti-DEI (D for diversity) and anti-immigration (i.e. nationality / geography of origin) politics there is these days. In terms of diversity of politics/ideology/thought, it is now more common to think of one’s political opponents as enemies or “vermin” in a (currently mostly non-violent) civil war, rather than people you merely disagree on some issues with.
@Hanna once mentioned something about student preferences on the matter: Is a college's racial/ethnic composition an unstated overriding factor for many people? - #18 by Hanna
Of course, colleges looking at their marketing motivations presumably consider how their diversity or lack thereof affects how attractive or not they are to various subsets of potential students.