If you want only ONE gun for all situations, you have no other choice than to take a normal gun.
The best all-around normal gun is probably the blaster. Don't take an Autogun, even tho it has a high dps, it's very impractical to use because it roots you in place.
Usually tho, you either get a gun as a side-arm or are a dedicated gunslinger, meaning you'll have more than one gun (thus having different damage types).
I guess you are in the first situation : a gun as a side-arm is mainly used to deal with enemies which are troublesome to deal with at close range. This includes all turrets and lumbers. Those are all either neutral (for polyps) or weak (for all the others) to elemental. Thus, a gun as a side-arm is going to be, in most situations, an elemental gun.
As for elemental gun, you currently have 2 choices :
- a Polaris line. The expanded shot is really good because of AoE and attack cancel, but it's troublesome for your teamates
- any elemental Alchemer line. There is no problem with teamates, it's a good gun. I assume you already know this type of gun (tho i wouldn't advise to carry a shadowtech for general purpose side-arm).