From memory most of these big ships are built in sections, so depending on what a structural survey of it says they might well repair it as the cost of the repair is still likely to be less than the cost of scrapping it even if they had to do something like put a new front on it (at least if it's fairly new).
Things like "newish" big ships and commercial aircraft are rarely written off if they can repair them to a sufficient standard (on a ship that costs £100+ million and 5 years wait to build a few million for a repair is cheap), as you have the cost difference between what you might get from the insurance for writing it off, and potentially the cost in lost capacity/business whilst you go to the back of the queue for a new one to be built to order.