If you are planning to purchase a new microwave and think about what you can do with the old one, there is nothing to worry about.
Microwaves are considered e-waste, so it can be recycled surely. First of all, you should check with the seller if there is any chance of exchange or not.
And if they are accepting the exchange you can surely do that.