Pull a Truman Show
To spend time doing something with the intent that it will contribute to a specific goal or project only to realize after completion that this had no positive productive value and was a complete waste of time.
"Man, I need to write a paper about suburbia in popular culture, but I decided to watch a movie that didn't actually have anything to do with that. I hate when I pull a Truman Show, brah."