Ideally, if the generic has the same dosage as its branded counterpart, they work the same. Usually the difference would be in the fillers or other ingredients that the company includes in the drug. Even different brands (not generic) of drugs have different fillers, thus the variation in side effects.