The only course offered by both is maths, you cannot compare them on that alone. For maths, Imperial is generally regarded as better, but it's the only common degree the two offer. If you're asking because you want to know which will have better prospects, you're going to university for the wrong reason. Pick the course you want to study, and then pick the university, not the other way around.