Both are very good guns
Both have knockback on the charge and have high DPS
The only comparable area is damage type and uses.
Grim Repeater is built for killing jellies and gremlins and to a lesser extent constructs (no one guns beasts, if they do they use a Blitz). Grim repeater is the ideal weapon for fighting the Giant Lichens, Jelly King, and Seerus. To date this is the strongest shadow damage gun in the game.
Volcanic Pepperbox is good at killing just about everything (though a bit slower against certain monsters when compared to blitz or Grim). The total damage output is lower than other autoguns and is equal to the Plague needle vs neutral targets. So what is the use of this gun? Well the fire is has is quite useful. Fire is the most powerful damage dealing status in the game and stacks well with other weapons. It can also be used to melt Ice Cubes, Reveal invisible enemies, and since it is normal damage it is useful in every situation short of oilers. Thanks to the GU buff to autoguns it is also somewhat applicable to LD since it is much faster now and the spread can prove unpredictable to enemies, fire status can force retreats and reveal recons. The Pepperbox is also one of the suggested weapons for fighting Tortodrones as they do not resist normal damage at all and have less resist to fire than other statuses.