You don’t want to reward people who give fast answers if it means denying better ones. This is known as “the Fastest Gun in the West” problem around here, and there are many postings about it.
Probably the only time one would make an acceptance decision based on time of posting is when there were two truly duplicate answers posted at separate times. I rather wish people would look at existing answers and avoid duplicating them, but that doesn’t always happen.
Also, please remember that you can change your accepted answer whenever you like. If a better answer comes in after you’ve already accepted one that is not as good, you can always change which answer you’ve accepted.
I cannot say for sure without seeing the postings involved, but if it were me, I tend to favor answers that present a complete picture over those that just fire off a quickie. Of course, a long and complicated solution should not be preferred over a simple and elegant one.