Gross margin differs from other metrics like net profit margin because it exclusively considers the costs directly tied to production.