I think a flaw in the thought process occurred when too quickly, many glossed over the qualifying language of the equal and opposite principle.
Those words, “when one object acts on another” were construed to be the rifle making the bullet fire, and the bullet therefore, acting on the rifle in the opposite direction.
The rifle did not make the bullet fire though, the powder did, and it performed the same work in both directions. (A person may ask, wouldn’t an explosion between two objects force them apart in opposite directions, yes, except in the case of a rifle, the structure itself, the barrel wall, connects the bullet to the bolt face, at the relevant period we are considering, which is pre-exit, holding together, the two objects the force is applied to.)
Slow the process down. Suspend a rifle from a string in the front and on the rear. Inside the rifle, substitute the powder for plain water trapped between the bolt and the bullet.
Imagine now that room temperature of the rifle is notched up a degree at a time and the water is slowly heated to a boil, we all know what’s going to happen.
The water is going to expand slowly, and the pressure it creates will ease the bullet into the lands, creeping down the barrel, until it is half in and half out, then all out, with a “pop”.
Who believes that as the rifle hangs from the strings while this is happening, in a near zero friction environment, it is going to slowly swing up and to its rear, as the bullet creeps down the barrel, such that the strings are no longer perpendicular to the ground? Not happening. (Take away gravity and set it on ball bearings, probably the same thing results, it’s perfectly still the entire time the bullet moves down the barrel, not moving backward at all, or at most what a clock would do as the pendulum swings, which is not recoil.).
I can see that swing happening the instant the bullet leaves the barrel, just like the moment a cork pops out of a champagne bottle, but I cannot envision a rifle doing this on its own when heated, before then. It remains one, still, closed system until exit.
I can envision its center of gravity moving forward with the bullet, and exerting slightly more force on the front string, but this is not recoil.
EDIT to add that with respect to the explosion between the bullet and bolt, if one were to urge the rifle does not know the difference between a passive bullet over powder and propelled grenade, or an undersized bullet that is not dragging the barrel forward, and why then that may not result in the gun matching the bullet’s forward momentum in the opposite direction while they are attached to each other, consider also that pushing against a grossly unequal mass will only result in the lighter object moving opposite its push; - the maximum exertion against a pickup by a man will return slight movement, but 1.5 X the same effort will not move a D11 even slightly. A man to a D11 more closely resembles the bullet to heavy gun ratio. If you were to run a barrel over a steel rod embedded in a concrete 4’x4’x4’ block of concrete and fire a blank, the gun is now the lighter object and the block will not move.
Punch holes in it. That’s why I wrote it.