Both are legal in Open, Std, Prod, Prod Optic and the X5 is also legal in Prod Optic Light. Obviously the 3 Production divisions without the magwell fitted. Just check on the Production list and you find the answers.
https://www.ipsc.org/production-division-list/?fbclid=IwAR0oBV-tPgQ0HS4WTbZT9_z1EUvC49Jcfrx-NZISCQrCeEKOMabpVllkyAU