I would argue that it’s more of a pastime than a game. True “games” have built in objectives, like checkmating a king, that you deploy the rules and materials to achieve. I find playing playing Civilization against others or on the hardest difficulties just ruins it for me because all my reasources and abilities must be marshaled toward ultimate victory that I don’t have anything available for the best part, making cool looking cities full of wonders. But others, who hame more mastered the ”game” aspects of it, who are skilled doing what the victory oblective forces you to do, have a blast. I enjoy Civilization as a pastime and like an apropriate level of competitiveness to Keep it from becoming FarmVille pointlessness.D&D is a game. So why do people object to it being treated like a game?
Much the same with D&D. It requires some winning along the way of cooperatively telling stories and fleshing out cool worlds. Making it more of a ”game” means making it more about rules and ability utilization and optimization to “win”. 30 minutes of deploying dice, tactics and rules mastery to cross a raging River is one kind of fun. “I lasso a tree and surf across on my shield” “ok, roll 14 or higher and you make it” is another.