So we are talking about the drawing in #73. And you are summing torques around point A at the center of the driven gear A.
But you are responding to a post by
@A.T. where he speaks of an "isolated system". There is no isolated system in post #73.
We can turn this into an isolated system composed of three entities. There is the ground, there is gear A. There is gear B.
We wish to identify the torques on gear B about the reference point at the center of gear A.
We begin by listing the forces on gear B. There are two. The force from the teeth on gear A where they mesh with gear B. And the force of the axle where gear B is fixed to the ground. The two forces are equal and opposite. The moment arms are not equal. So the torques are not equal and opposite. So the angular momentum of gear B changes over time.
We can apply Newton's third law for forces and immediately identify the third law partner forces: The force from the teeth on gear B on gear A and the force of gear B on the ground at its axle.
Both force pairs are contact forces. The points of application of the two members of the one force pair are co-located. The points of application of the two members of the other force pair are also co-located. Newton's third law for torque follows trivially in this case. And one can see that the total torque on the three pieces of the isolated system will necessarily sum to zero as long as only contact forces are involved.