At most, markets can show whether they are financially worthwhile.
The market doesn't have agency. It's a projection of people's preferences.
One of the bigger problems with capitalism is that it reacts much too slowly to be a viable economic system.
It seems to run much of the planet and can go pretty quick when there are not bureaucracies slowing it.
One of the bigger problems of non-capitalist systems is that it requires whips to force people to do things they do not want to do without adequate compensation