The B5 is a better car.
The B6 is essentially an A5 with an obesity problem, in the same way the B4 was to the A3, and the B3 was to the A2.
However, the transverse arrangement does allow for a little more interior room, despite being no bigger of a car. The B6 wagon actually has more interior volume than the T'reg.
The B6 engines were not good for us.
Early 4 cyl: BPY engine, good sturdy engine, with its overhead cams driven by a proper belt, BUT, were prone to rampant oil consumption, most of these have blown up (however, if you keep them full of the correct oil, they'll run forever.
Late 4 cyl: CCTA engine, the first (and worst) of the EA888 family of turdbombs. I could type for an hour on the problems with those. The Pope himself could fart pixie dust into the intake at every service, it isn't going to make one of those last.
VR6: pump sucking chain chuckers, strong engine, but not that great, and by then those were all the more fragile 24v versions.
So yeah, lots of them could have been gotten on the cheap needing engines. Gosh knows I've seen boatloads of them. But now that the newest one is over a decade old, you may not find a really nice specimen that is in need of an engine.
The platform continued on a few more years under the CC, if you like that "four door hardtop coupe" kinda look... I am not a huge fan, and the CC is a pain to get in and out of.