Tools for jobs. If your target is within 100 nm of your own land-based air, don’t send an aircraft carrier.
Carriers are just large, slow targets, aren’t they?