Both. It's a very dangerous move for Apple since it basically constitutes exactly the kind of "gatekeeping" the DMA provisions are meant to prevent.
The only way Apple can justify this is with the clause that allows the Gatekeeper to protect the security of the platform, but the measures enacted needs to be "strictly necessary and proportionate" and I highly doubt the regulators would buy that argument.
So the clarify you think Epic can do anything it wants and Apple can't do anything because of "gate keeping"?