I personally don’t think either communism or capitalism will exist in 10 years from now. We are entering a period of total upheaval, where the very concept of a nation state has become obsolete. I expect global theocracy where robots and ai (incl nanobots) clean up the mess we made in this world, freedom becomes more limited, but abundance and security increases. There will be a renewed focus on community and human connection rather than the run away obsessive focus on materialism and innovation at a pace human beings cannot adapt to. Human labor, cognition, natural resources and policy have always been the elements that dictate whether a nation can develop into a first world country. Labor and cognition are respectively solved by robots and AI.
Yes, in ideal world what you're describing would happen. But imho the reality will be much more complicated to describe.