Either capitalism is a new phenomenon and we don't have enough data to know how stable it is beyond outlasting communism, or what you call 'capitalism' is anything except communism - in which case it has failed catastrophically many times throughout history.
Democracy is relatively new, and has proven hard to establish in most of the world, so there isn't a lot of evidence that it's stable.