What is this surface skim literary analysis? I'm getting the sense that you have a Whiggist interpretation of history and reality yourself and you are not aware of it. You assume that the society depicted in a work constitutes its tone and philosophy, while the characters apply universal values to save the day. Re-calibrate a bit. The society depicted within inculcated Whiggist "dystopian" sci-fi works represents the previous, backwards, regressive kraken to be slain, while the methods the characters use to correct that society are the manifestation of the author's progressive values applied.
The maximally unequal society of Hunger Games is resolved via a violent revolution in favor of more egalitarian values. Same with Divergent. Star Trek Discovery is about a sexually and ethnically diverse crew somehow (in a future that was supposed to have solved these things) facing bigotry and solving it by simply applying or arguing for the "morally correct" values they already have. In Foundation, enlightened technocrats shorten a regressive civilizational collapse and return to "upward" progress by literally tricking the surrounding cultures into the Foundation's value judgment of the "correct" path (very VERY State Department of them). The Expanse is a TTRPG novelization and subsequent TV adaptation where a near-literal paladin (Holden) applies enlightened egalitarianism, diplomacy, and pacifism to stop an interplanetary faction war.
ALL of the specific stories you mention feature extremely strong Whiggist storytelling, and further than that, Isaac Asiimov (author of Foundation) was a famously outspoken activist for enlightened, Whiggist, progressive, technocratic ideals. Many peoples' first introduction to these ideas was Star Trek, though modern Trek handles its themes with all the subtlety of a mace.