This is the theme of the "Twenty-fourth Voyage of Ijon Tichy" by Stanisław Lem. Goods are mass-produced but no one has income to buy them. In the end they asked AI to find the way out of this deadlock. The AI found the solution of crushing them all and arranging their remains in visually aesthetic patterns. Funniest part is that they voluntarily went along with this plan because they could see no other.
The whole "Star Diaries" series is such a gem. Many stories are exploring this question of "what is the endgame for societal trajectory X" in a form of some remote planet that Tichy visits on his trip.
The whole "Star Diaries" series is such a gem. Many stories are exploring this question of "what is the endgame for societal trajectory X" in a form of some remote planet that Tichy visits on his trip.