Embarassing. I didn't buy the wrong one. They shipped the wrong one. I have an old hayward SP 573 housing. I bought an SPX540Z2 gasket, and they shipped me an SP-580-Z2 gasket. Same diameter, and the lens fits right in it, but it's about 1/8" thicker.
Thanks for the help :)