Sometimes you work on something for a considerable amount of time, look at it and decide not to use it.
It’s not always a waste of time. It can be frustrating.
But, you learned a little more about what works and doesn’t and how to get to either point.