Sector vs industry
Macro vs granular categorization of a company.
A sector is the macro bucket (e.g. Technology, Healthcare, Financials). An industry is a finer subset (e.g. Technology → Software). Comparing a stock to its industry is usually more informative than comparing it to the whole sector.
Educational definition. Not financial advice.