Apple gave you a new one under warranty. Awesome. If you have no need for it, you should just sell it for much more than you would have gotten for your older used one.
Nothing immoral about selling it, just don't list it as brand new as it more than likely a refurbished item. Unless it actually came in a sealed retail box of course.