Whatever it optimizes for, often it makes it everything fall apart due to short sightedness, unaccounted externalities and actual failure in optimization. Would have been all fine eventually if human life wasn't finite and suffering didn't exist.
The US free market is objectively better than any other system. That's why the US has millions of people trying to get in. They're not trying to get into Cuba or Venezuela. The USSR had to build a wall to keep people from fleeing.
Not everyone is trying, it's mostly Mexicans and other south Americans so you can say that it's better than cartel ridden poor countries. Definitely provides great opportunities to do paid work or even invest but that's just one aspect of life.