This always frustrates me, if I try 3 different ways to do something of which 2 are dead ends and one works I feel that the 2 dead ends were wasted time because very little of them ended up in the final solution.
Worse is when you find those dead ends while working for somebody who doesn't understand software. I've seen consultants stiffed for weeks of billable hours for researching technologies they were specifically asked to research.
"In the end, it was faster to roll our own than integrate X, and we'll be able to move quicker in the future."
"Then why did you waste all that time playing with X???"