Redshift degeneracy in the Eiso–Epeak relation of gamma-ray bursts