Submarines work on the principle of the arch: a spherical or cylindrical hull section transfers all the force into compression of the material so there is no net "inwards" force.
The weak points then turn out to be joints, material defects (the famous Titan failure), windows and other piercing points, and any unexpected shear forces.
The weak points then turn out to be joints, material defects (the famous Titan failure), windows and other piercing points, and any unexpected shear forces.