My point was more along the lines of it is wasting time. If you do something bad for the right reason and then later find out it is bad then at least you know that solution was the issue and you can try a different solution next time.
If you do something right for the wrong reason then you have absolutely nothing to learn from and have made no progress at all at finding the correct solution for the problem at hand.