Geometry-induced rigidity in nonspherical pressurized elastic shells