There is no automatic way to do what you want to do. You can track one face, motion-stabilize the other, do some roto on the replacement face, live with the replacement face being bigger than the original face, or replace the original face with the background in the original shot, then put the motion back in the replacement face. Mocha AE would be the tool of choice for almost all of this.
The only other option would be to Rotoscope the original face and motion stabilize the shot, then just motion track the original face and apply that motion to the replacement face.
Currently, there is no AI assisted workflow that would make the task a one-click project.