Here's a more detailed answer but I'm not editing my other one that sums things up pretty well.
1. I would leave my answer be if it's correct, even if it's not the best. Anyone seeing the question and the answers could compare them and learn the differences. Or they could come up with a better solution from comparing the two answers. It's easier to see an improvement when comparing with a lesser solution.
2. I usually vote multiple answers if they're good enough. I've got votes to go around. I often vote multiple answers if they complement each other or I consider all of them correct. You can only choose one Answer for a question but nobody is preventing you from up-voting two. So be generous with all those who are correct. Sometimes the real answer is the sum of several different answers available on a question. But this only applies if the one reading the answer gets it. I often post answers that they don't get...
3. Worst case, delete it. If the difference between the answers is minimal and you didn't post it first, remove it. Even if you started writing it first, you'll look like a plagiary. :)
4. As I said before, keep calm and learn from the better one. The rest is just bureaucracy. Don't let it be in your way to contributing and learning. And ignore the haters. If you answer gets smacked for not adhering to the most pristine of time wasting standards that are all the rage today (probably not tomorrow), let it be if it's correct. We ain't all unit-testing micro-managing fanatics. It'll eventually recover once enough clear eyes and calm minds see and up-vote it.
PS: I use statics
in PHP
where they should be used. It gives OOP fanatics and unit-testers a fit but I don't give a (rhyme).
</rant>