Thanks but that’s if you do it via mailing in your application. When doing the renewal online it doesn’t tell you what to do with the old one. Unless we missed that!!!
From the travel.state.gov website when dealing with online renewal:
Keep Your Most Recent Passport
When you complete your application, you will need the passport you are renewing on hand. Keep your most recent passport. Do not mail it to us, or try to use it to travel since we will cancel it.