Im not a pilot or meteorologist but from what others have said it seems that the plane would have been very cold from flying at 30k ft and if you fly into a thunderstorm like that where they have super saturated air just looking for any place to condense on, all that water would turn to ice immediatly on contact with the wings and as soon as the wings lose laminar flow they would stop providing any lift and the ice would increase weight and shift the center of gravity/rotation.
Im not sure how high the top of a thunderstorm can reach but if they could have gotten up and over the top above that 100%+ humidity before it had a chance to condense on the plane then i think that would have been the more prudent choice.
Generally in aviation more altitude is more safe. I think the only mistake was waiting too long to try and climb out of it rather than trying to climb over it to begin with. But im not a pilot so idk.