As with most things, it's "use the right tool for the job".
I'm not sure this will make sense to anyone, but I'll give it a shot.
If the point of the story is the main storyline (you have a mystery to be solved), then generally the characters don't typically matter that much. After all, the story exists for the AUDIENCE to figure it out, not for the CHARACTERS to figure it out. There are other genre examples of this that aren't mystery, but they're usually "this is the premise, what happens as a result of the premise?" type stories. These are stories where the events matter more than the characters.
So, you need to write a compelling "story" in those instances.
If the point of your story is "how do the characters act/react to events", then generally the main storyline matters very little in any context. After all, the main draw would be the characters and them being likable or interesting. Usually this is the most versatile writing option available, however, since the "main story" can be completely crap so long as everyone likes or relates to the characters (you can look at Young Adult novels as the poster child for this sort of thing. The world of The Hunger Games makes literally zero sense, but the characters are why anyone is reading those... and the story of Twilight is pretty bad and beyond basic... but people were invested in the love story between Bella and Edward, so that basic and stupid storyline didn't matter at all).
But, there's also a third option in here.
Exploriation of an idea/concept.
Where the story AND the characters don't really matter. The example I like to cite is "Starship Troopers" for something like this, but there are many other examples across the genre. The reason I cite "Starship Troopers", is because it's one of my favorite books and its also very simply constructed so th at anyone reading it knows exactly what I mean by "exploring an idea".
Starship Troopers follows Johnny Rico on his way to "becoming an officer in the military". But, we get very little about who Johnny is as a person, what he thinks, or even what he feels. Johnny serves as our "point of reference" for the system of government he lives under as well as a mouthpiece for (presumably) the author's personal politics. So, it's not a character driven story. On top of which, the story itself is "Johnny enlisted in the military shortly before humanity went to war with an alien bug species, and this is how rough it's going for humanity". Pretty basic, mostly glossed over, only slightly interesting (when the movie was made, they basically turned the war against the bugs into the primary draw, which was excellent, since the alien species had the potential to be VERY INTERESTING as a complete unknown to humanity. And it worked as the audience for that primary movie and any afterward is typically far more enamored with the new species of bugs and their role in combat compared to how the characters deal with those bugs).
So then, what is "Starship Troopers" primarily about? Basically, it's a hit piece on how stupidly governments and militaries are run. The whole book is a wide criticism of both modern government (anywhere in the world, including in the US) and how militaries are run (treating basically every soldier as stupid, expendible, and worth nothing). That's what the book is exploring. A fictional "government" and "military" that tries to "do things better". Whether the audience agrees with those takes isn't really the point. Exploring those takes is sort of the point of the book (though it basically only extolls the virtues of such systems, which is what basically every person does when they have an idea they think is great or will fix things). The book proposes "You can eliminate all governmental stupidity and corruption by requiring anyone in office serve out a dangerous military term where they learn the value of protecting Humanity and putting Humanity before themselves, as well as only letting those people vote so that corruption can't be easily elected into office" and "we really shouldn't have any stupid soldiers and all soldiers should be trained to be highly capable and highly intelligent where the only difference in rank is how good their leadership skill actually is". That's the book.
It is basically Johnny Rico editorializing everything he thinks is great about his current government and how the military actually works. Johnny could've been replaced with anyone. Book isn't about him. The war exists in the book purely to show off how the military should work in practice, it could've been against anyone or anything (in practice, the bugs are basically the ultimate Communists, so they exist as both critique and virtue of that system as well). So, the story or the characters don't matter at all. It isn't an exploration of either of those things. It's a book that explores a fictional "governmental utopia" and uses that utopia to leverage heavy criticism against all current governments and all current military training/doctrine.
Heck, if you want a story that also does something similar (with actual fascism, not just media implied fascism from people who didn't read the book), you could look at "Brave New World". This is also a story about "The setting and premise". The characters don't actually matter that much, only the system they interact with matters... and there's really no "story" in it at all. The basic premise of the story is "this system exists, so what happens when you bring someone in from outside, who lives in the ghetto and was abused their whole lives, and has to interact with this system". It's also a story about "an idea", rather than having an actual story or characters to care about.
Sci Fi stories generally engage in this "exploration of ideas" most often, but other genres do it as well.
It's all just a matter of "using the right tool for the job".
If you have a really interesting premise, then maybe your characters don't matter that much.
If you have really great characters, then maybe the story they're in really doesn't matter that much.
If you don't have a premise or characters you feel are interesting... then why not just write a "think piece" on your own worldview? That works, too.
Or, in the case of video games:
It's possible that the point of the video game you're making is to play the video game, you know, like a board game. You aren't playing Sorry! for character development or a rich storyline. You're playing it because it's fun.
Video games can be "just for fun" too. They don't necessarily need anything in them beyond the systems you employ. Though... then you get into tricky territory of "is this actually an RPG, then?" without those things. Which is a different discussion entirely.