I'm perhaps a bit biased but I'd say Prague ;-)
IMO more to see and do, prettier city, more cultural, more compact and, as such, easy to get round on foot but there is also excellent public transport, better food and beer, overall just a nicer place.
Someone from Budapest may disagree though ;-)