IMHO,
The weight of a shell affects the penetration more than the diameter. The heavier the shell, the more it improves the kinetic momentum of the projectile, and perhaps... deeper penetration.
You can have 105 mm cannon, but if it's short barreled, it won't scratch a damn thing.
And well, the shape of the projectile and its composition affects much more though.