Don't Do It
The Mason Jars can withstand the pressure inside a pressure cooker, because the jars are usually sanitised with lids open (so steam goes everywhere) in the pressure cooker. The pressure is surrounding the glass, on the inside and the outside of the jar, acting ON the glass, the system (within the cooker) is balanced.
With bottling, the pressure of CO2 is HIGH inside the jar and LOW outside the jar, the system is not balanced. Pressure moves outwards smashing the weak unsuitable glass to balance the system.
If you really want to see for yourself, place yeast + sugar water in the jar and place inside a box somewhere of suitable temperature and away from everyone and everything!