The problem here is that you (and many others including the President) have mislabeled Mamdani as a communist. He is not. He is a self-described socialist.
This is likely a deliberate choice. As you note, communism doesn’t seem to work very well. But socialism does. Much of Europe could properly be described as socialist, and it’s not a terrible place to live at all.
—Peter