Which league tables are you looking at? From CUG the only engineering discipline where Cardiff is noticeably higher in the rankings (when looking at the individual scores too) is EEE, otherwise Swansea is on par or better than Cardiff.
Even if they're a bit low in the rankings now, they're going to continue flying up in the next couple of years so I wouldn't worry about it, go for Swansea.