I was a crewman aboard the ship, unaware of your plans, after seeing that you have tried to throw it into a black hole I tie a rope to the ship and dive into the black hole, and I come back out with the cookie, although I am now horribly deformed.
I put one of those disguise glasses (the joke glasses) on the cookie and throw it into a crowd, no one will ever tell the difference.
Someone wins that race, tries to eat the cookie, and inevitably fails. They angrily stomp off to the managers of the race, and then later, they throw it at someone else and say "Take it. I don't want an indestructible cookie." The person who had the cookie thrown at them just so happens to be me, and I take it.
I put the cookie in a 16x16 Colossal Diamond Chest with a bunch of nigh-indestructible fakes in order to confuse anyone trying to take it from me.
I somehow shove each and every single one of the chests into an MRI scanner, after I find the real one I then find a cleavage plane on the diamond chest, (since it is made of diamond and diamonds break if you hit them in certain spots I think) and tap it with a hammer.
The entire chest collapses, and I get the cookie.
I then have the cookie as a prize on the next episode of Jeopardy.