How are Applicants compared?

Hey guys,

As I understand it, students are compared to their peers at their high school as well as their peers across the country. One thing I was thinking about was, would URMs at schools that are predominately wealthy and white/asian, despite being neither of those things, be looked at differently? Or are all applicants from a particular school given the same consideration for being in the same location/having the same “opportunities.”

Is there any consensus on this?