You can't file 2 returns with the same SSN.
If you are saying the IRS rejected the first one then you can ignore that one.
Wait until the IRS either accepts or rejects the second one. If the second return gets rejected, you'll have to fix it and resubmit it again.