I was writing some code and I knew that if I wrote it dirty, I could get it clean. But I kept trying to write it clean from the get go. I spent at least two hours researching the "clever" way of doing it. There must be something in the standard library for this. There must be something on StackOverflow. I bet someone wrote a blog post where they did this in a really slick way. I could use that and drop the mic in the PR.
There's the problem. I want to "drop the mic". I knew better but I couldn't do better.
When finally did finish no one said anything. I ended up writing the straightforward simple thing. People understood it. The PR was quickly approved. Easy merge into master.