After you file

You cannot e-file with the same SSN as the 2nd one will reject.

Also if both were paper filed or the 2nd one was IRS will reject it.

There is no need to Amend a duplicate filing as 2nd one will be rejected.