Which are better: Generic or name-brand medications?

Aged whiskey, high-speed laptops, extra-ply toilet paper--sometimes, ponying up for name brands buys higher quality. But when it comes to medications, generic drugs are like a plain white tee--the cheaper option does the same job as the one that breaks the bank.