I have had this happen several times.
First time was when I ordered some chinese bar stools. The reviews were terrible but it looked like some whiners that were just complaining because they didn't have metric allen wrenches. They showed up and were pretty bad, at least not worth what the price was. I initiated a return and my money was refunded and got some bot message asking me to jump through hoops like provide pictures, leave a positive review, blah blah. I wrote back several times and always got the same bot message. I called Amazon and they looked over everything and said "keep the chairs, you've done everything you can."
Second time was ordering some injectors for the Branger. They were sold through Amazon, but drop shipped from the company. The company was closed for covid, but no one knew. I called Amazon and they said they must be lost in transit so we'll ship out 6 more. They did and I got them a couple weeks later when the company re-opened... along with the original 6 I had order months before. I now had 12 injectors. I called Amazon back and they said they can't do anything since it's not their product. I called the company who remaned the injectors and they told me to keep them because Amazon paid for both sets. So I traded the extra injectors for a bottle of whiskey at the Challenge. A REALLY GOOD bottle of whiskey.
Just recently I ordered some holiday gifts from Amazon. They arrived on schedule, but because of some glitch they weren't marked as delivered. I got updates that said "running late" but I had the stuff in my hands. They tried to re-send the products and I had to let them know that I already got them.
If you play along with Amazon's website and finally get to chat window in the returns help department, there is an option for them to call you to resolve the issue. The second you click that button and enter you number, your phone rings and you can talk to someone. They will look at the screen and give you an answer of what to do.
Amazon has warehouses that stock things that they sell, but the majority of what they sell is via third party companies that sell via Amazon kinda like Ebay. Once the order digitally leaves their servers they kinda wash their hands of it. The order goes to the third party. All Amazon knows is that you paid them, they paid the third party, and the product didn't show up, so they refund you.
Now, here's the tricky part. The freight company thinks you own it and they are transporting and storing YOUR product. If you refuse delivery, they might charge you storage. I would inform the freight company of the situation and see what they want to do, and also inform Amazon of the situation. Chances are, Amazon will then sort things out with the freight company. They may say, go ahead and take delivery and we'll come get it. They may say just keep it. Who knows.