2002 automatic: 4 speed 01M crappy shifting, hurts MPG, very failure prone, not effective to rebuild, expensive to replace - about $4k. Do a search, tons of info here. Its junk. There is a reason that hundreds of them get swapped out for a 5 speed manual.
2005 automatic: 6 speed DSG; DMF failures, mechatronics unit failures, expensive fluid changes every 40k miles (many people don't do this and the trans suffers as a result), not rebuildable, $6500 to replace.
The ALH engine models are better than the BEW. Read up on the cam/lifter wear issues. If you have to have an auto, buy a B5.5 Passat...but then you're stuck with balance shaft issues if it hasn't been addressed.
Bottom line (my opinion): If your left leg, right arm and half your brain works...buy a manual. Simple, effective, reliable, efficient, fun to drive. Automatics are boring.