If others claim they could do the task faster, consider that programmers chronically underestimate.
If you've seen others do it faster, it's possible that they are taking shortcuts, making quicker decisions that will involve more work later. From your example, you've carefully picked a library and thought through how to integrate it properly into your code - these steps can be skipped for speed, but the cost usually isn't worth it.
There are always going to be better programmers, but they're often not the ones who claim to be great, or fast, or rockstars. So I'd just check to make sure you're not making unfair comparisons of yourself.