IRA BDA - duplicate RMD

Forgot that I had activated Fidelity automatic RMD withdrawal for inherited IRA and accidentally took the RMD twice. Fidelity said that I cannot return the duplicate withdrawal into the IRA BDA. I want to avoid the tax consequence and based on what I can find online, I believe that I can move the (duplicate) excess RMD withdrawal into my Traditional IRA as a rollover within 60 days. Can someone confirm that is correct please? I do not want to make the problem worse. Thanks for your help!