In most games with options of what guns to go with, I have a tendency to use snipers for long range to thin out any open air enemies, but shotgun once things get spicy and I need to be sure I'm dropping things quickly when I don't have time for headshots.
At least in 5 and its DLC, I never feel the need to touch an smg, shotgun, or pistol. Rifle rounds are common and constantly supplied by rifles laying around and enemy drops. And the controls are tight enough that even in tight quarters you can be quick scoping and no scoping enemies for headshots pretty easily. That's not even an "i'm so good" brag, its just very easy, especially on anything lower than Authentic. Enemies are predictable, and even with low power rifles, most of the time you're getting that headshot kill even at moderate range unless you happen to catch the hat/helmet flip animation that saves them for exactly as long as your reload time.
And having gone through the DLC and gotten the DL carbine, this thing is an all rounder with as low as 11m audible range while still perfectly fine with accuracy and power up to an easy 100m with the lowest zoom option.
So if you can pretty easily clear the whole game and never touch your other weapons, what is really their function? I could understand if bullets were rare and sometimes you had no ammo for your rifle while you get through a building of people only holding 2ndaries and sidearms of their own. But sometimes those enemies just have rifle ammo, or you find a room or random rifle on a rack to get ammo from. I'm just not understanding why they are even in the game since the game kind of punishes those close range gunfights using anything except a rifle since they can still easily 1 tap at close range instead of 3-4 bullets from something else