Yes, its internal compartmentalization made it very hard to sink.
I think another reason was that Rodney closed to short range, and her shells were being fired into the ship more or less horizontally, so they didn’t poke holes in Bismarck below the water line. Vertical plunging fire from long range might have been more effective in sinking her, but was certainly less accurate.
Even so, he took an incredible pounding.