How well do you know the places?
If you cant choose between the courses then, IMO, look at the Uni and the City - they are both quite different places, even though they are only about 20 minutes apart on the train. By spending some time in both, one is likely to "feel more right" for you. FWIW I really like both, but for very different reasons.
Leeds as a city is less posh/touristy than York, so its easier to go out, go shopping etc. My daughter is at York and avoids the city much of the time because of tourists, but she loves the campus. York accommodation is expensive and there aren't really any supermarkets near campus. Buses can be a bit rubbish (York traffic is the issue) so walking / cycling can be quicker.
York Uni is a campus uni, separate from the city, though campus facilities are limited evenings and weekends. Leeds Uni is more a part of the city, so feels more integrated, less of a bubble
Another aspect that might help you choose could be the clubs and societies, anything you really want to join?
Good luck - 2 great choices to pick from