Why view it as a dichotomy? Expose kids to both (and other fruitful intellectual hobbies) and let them pick the ones they like. I don't think it's "problematic" to consider that how rewarding a hobby feels might not be an objective hierarchy and instead might vary by individual.
Learning about science is more rewarding to me as an amateur than hobby/indie computer programming. There are others like me, though perhaps a minority on this site. I'm sad to see this go. One of my favorite experiences as a child was visiting the Boston Science Museum.