In Star Wars: The Rise of Skywalker;
The sith fleet commander deactivates the ground-based control tower, leading to the resistance fleet landing on the command ship to take out the aerial on that ship.
Yet, later in the same battle;
Just shooting the underslung planet-killing ray gun seems to take out star destroyers with ease
Why didn't the resistance fleet just bomb the command ship with Y-wings, or shoot the aerial, or blow the ship up like they did with the others?