Both universities are good - If it was me I would go for Nottingham. It has been a russell group for a longer and is more known to employers as being a high quality university.
York is still a very good university through and if law firm had two candidates to pick from them, they would not pick based on the university but grades, work experience etc