In a sense this didn’t work out for you either - financially anyway
Second, many people on this platform, me included, got good at the things they do for a living, because they did it for fun (and sometimes still do). Going for the fun project helps you learn faster and better. It might be "the wrong" thing to learn, but who is even able to judge that?
If you consider not dying a form of happiness, sure. Seems overly reductive to me.
Also: I made that caveat and you skipped right past it. Everything is a gradient of course. I am not suggesting you have to never follow some discipline and always go for the fun route.