We characterize those commuting pairs of operators on Hubert space that have the symmetrized bidisc as a spectral set in terms of the positivity of a hermitian operator pencil (without any assumption about the joint spectrum of the pair). Further equivalent conditions are that the pair has a normal dilation to the distinguished boundary of the symmetrized bidisc, and that the pair has the symmetrized bidisc as a complete spectral set. A consequence is that every contractive representation of the operator algebra A(Γ) of continuous functions on the symmetrized bidisc analytic in the interior is completely contractive. The proofs depend on a polynomial identity that is derived with the aid of a realization formula for doubly symmetric hereditary polynomials, which are positive on commuting pairs of contractions.