Stress and stretching regulate dispersion in viscoelastic porous media flows