That's the part that I find missing from these discussions. Missiles like the D21 sound really deadly, but the information and communications needed to successfully target a carrier hundreds or thousands of miles away and deliver the weapon successfully is the much more difficult part of the equation. As the U.S. Navy (paraphrasing) said themselves, "The D21 has a long kill chain, and plenty of places to disrupt that kill-chain."
Likewise, the carrier goes around with much more than it's planes and escorts. It has the information being fed to it from ISR elsewhere, from satellites overhead to pre-mission information, communications eavesdropping, etc to know what they're up against and when and where they might encounter it. That, in my opinion is far more important than the specifics and specs of such and such weapon.
The success or defeat of a carrier battle group I think is going to depend far more on who knows what and when, and therefor, what's going on in the electromagnetic spectrum, than any singular missile.