Clinical studies show generic drugs work just as well as brand-name ones for most people. But for certain medications-like thyroid or seizure drugs-small differences can matter. Here’s what the science really says.