Fresh-faced law students will be showing up on campus later this month, gunning for top grades.

And their chances of landing a coveted A or A- in those all-important first-year courses are slightly better if their professors are the same race and sex as they are, according to recent research on the so-called “demographic mismatch” in law schools.