As long as aircraft operator and TC holder/design bureau are basically the same company no damage could be unrepairable
LOL.
But they still would do their sums.... if it would have been cheaper to write off the airframe and complete the 2nd one, I'm sure they would have done that.
Obviously not the case here.