Newton’s second law concerns the resultant force on one chosen object: a nonzero resultant changes its velocity. Newton’s third-law partners act on different objects, so they do not cancel within the same object’s force sum.
What measures inertia? Mass.
Which force belongs in F = ma? The resultant external force on the chosen object.