keep it
Assuming it didn't go off by itself (yet to see a gun do that) you definitely know that your pistol works as it was designed to. This incident (as others have mentioned) could have been much worse. The pistol didn't do anything wrong is where I am going with this, and you now have a special connection with it imo. You will likely have a scar and a story to go with this incident in the future. Don't you want to keep the pistol that can tie the scar and the story together? I would.
Assuming it didn't go off by itself (yet to see a gun do that) you definitely know that your pistol works as it was designed to. This incident (as others have mentioned) could have been much worse. The pistol didn't do anything wrong is where I am going with this, and you now have a special connection with it imo. You will likely have a scar and a story to go with this incident in the future. Don't you want to keep the pistol that can tie the scar and the story together? I would.