Normally, if the generic medication exists, the pharmacist will offer it to you.
However, a generic medication must duplicate the active ingredient.