What type of shotgun are you considering: double or repeater? Compared to a double, a repeating shotgun doesn't need to have as long of a barrel to have the same sighting plane or OAL. A 26" barrel on a pump or auto is comparable to a double with 30" barrels.
There is no practical difference in ballistics between the two barrel lengths, pick whichever "swings" best for you.