I just got a Stoeger semi auto 20 gauge with a 28" barrel.
I wouldn't go shorter than 26" from personal experience with a Mossberg
24" I tend to shoot low. I bought a 28" for that gun and fixed the problem.
Maybe someday I'll try the shims for my Stoeger and Bennelli and see what happens.