I‘d be really surprised if Apple tried that.
They have to know that it violates the DMA. And the penalty for violating it can be up to 10% of their yearly worldwide revenue (not earnings!) for the first violation and up to 20% for repeated violations. I don‘t think they‘d risk that, especially as the EU really isn’t known for its leniency when someone intentionally breaks their rules.