Resource misallocation and aggregate outcomes: towards better assessment of competitiveness