The slide ends up auto closing because it doesn't move when the gun is jarred in a specific direction, either from a smack or a mag being put in firmly. It's the frame that moves, that allows the slide release to then drop and allow the recoil spring to then move the slide. Yes the slide may move in other directions due to the gun moving around during all of this. But the specific actions involved in causing it to drop are what is described in this post.
A heavier mag may move the gun frame more easily, but not enough that it makes any difference. The angle the gun is on and the direction of movement as a result of the insertion is what matters most. The frame needs to move forward, rapidly, to overcome the recoil spring and allow the at rest slide to be released.