Cooperation, Competition, and Welfare in a Matching Market