I think Bath is supposed to be a better university (just going on my own knowledge here), and I do love Bath as a place but honestly I think Cardiff is a lot nicer for students. Cardiff has a huge student population, it's very cheap and it's actually a very beautiful city.
Mind you, this opinion does only come from visiting both Bath and Cardiff only a few times haha.