From what I've seen, people commonly have 2 views of art. Some use art as an adjective, thinking it's something that's supposed to be really good, like one of them masterpiece paintings. So you have
pseud pulp writers saying, pompously, that games aren't art,
not just yet! Naturally, being clueless on the subject. But then there's post-modern schizos, who refer to pretentious shit as art, like toilets and screaming women. So games are either not worthy of being art, or they're too good to be "art". And to some, they are "just games" or "commercial products". I guess, that last one is fair. Art is in the eye of the beholder.
Art is not
inherently good or bad. It has many criteria to be judged by, like skill and effort required to create it, cultural and historical impact, monetary value, uniqueness, aesthetics, emotional response it evokes, etc. Games are an artistic medium. Whether a particular game is art or not is subjective and decided on individual basis. To me, most video games are art. HOMM3, Caesar 3, SMAC and other games posted here are some of the most beautiful things ever made.
Things don't have to be good to be art; don't have to be art to be good.
The medium is capable of artistic expression if it can evoke deep emotions in the recipient using the means that are unique to this medium. If the game only makes you feel using music or pretty graphics alone, it's not art. It has to use gameplay (which of course can utilize and be enhanced by music, graphics, writing etc.).
There aren't many games where gameplay doesn't make you feel anything. Shit UI, tight controls, frustrating load times, satisfying movement or combat - all evoke an emotional response from a wide range. In some games, even bad design can work well for the game as a whole, like a game that wears you out with tedium, which ends up working, because your character is exhausted too, or something like that. I don't know where the "unique to the medium" stipulation comes from, but it's not even that restrictive. Games give you agency. Some games, quite literally, allow you to dive into a painting and explore it (sort of). Even an interaction as basic and fundamental as movement in a 2d/3d space is unique to video games. When you shoot an enemy and it explodes into a billion chunks, the sound and visuals are what's satisfying, but they are enabled by the interaction, gameplay.