Government and market are both human institutions. Market is really a convenient shorthand for "distributed, decentralized, uncoordinated economic transactions between consenting parties with an interest in the outcome", while government is shorthand for "centralized decision making made by disinterested economic actors". Please note that "disinterested" is a value-neutral term - it implies that the decision makers don't personally & directly benefit from the outcome.
Once you have the definitions right, you can see the benefits and pitfalls for both approaches. If you believe in maximizing human freedom, it is very clear that leaving people free to transact as they wish is the best path for all but those rare edge cases.