Please let me attempt to put an end the auto vs gun comparison.
An automobile and a gun are very different things. An automobile includes luxury items that can increase cost and reduce performance (Air Conditioning).
I don't think you will see a gun with a cup holder any time soon - unless you go do it now as a gag.
Save that electronics make cars more efficient, flexible, and reliable.
The modern "red dot" low power scopes on combat rifles make the rifle more efficient and help make the shooter more accurate. They're great for snap shots and quick target acquisition.
The electronics is cannon rounds give them the ability to "go off" at, say, 501 yards. This can greatly reduce the problem of overpenetration (you don't want to use 25mm HE rounds in a dense neighborhood, but the "smart" rounds can be viable). For example, they can use laser rangefinding to determine a car is 1500 feet down range, and set the shell to burst at 1501.5 feet, which in the middle of the passenger compartment. The shells go in, but they don't come out (since the car handily contains the fragmentation from the exploding round).
This is one of the capabilities of the new infantry system, with its grenades. No more lobbing and ballistic training. Someone shooting at you from behind a wall, lase the wall, bump the range 2 feet, and toss in 2 or 3 airbursting fragmentation grenades. Less useful against Battle Dress, but the others are called soft targets for a reason.
Traveller RAM grenades should have this ability.
To the main point, most folks don't want electronics in their firearms. Extra weight, extra complexity for what is ostensibly a simple chemical reaction. But there is evidence that electronics can and do make systems more reliable and capable, above and beyond the complexity they introduce in to the overall system.