I believe that differing brands have different ingredients.
For example, my aspirin needs to enteric and lactose free and sugar free.
It terms of what certain meds do, the change in cheaper meds due to new suppliers must have an impact in quality, always question your doctor if you have concerns.