The consumer discretionary sector is perhaps one of the best examples of what an odd year 2023 has been so far for the stock market.

As its name suggests, the sector encompasses companies that sell nonessential goods and services to consumers—think “wants,” not “needs,”—like clothes, new cars, and cruise trips. Because these are precisely the types of goods and services that customers tend to cut back on first in a pinch, the sector typically lags when the economy slows and recession risk rises (Fidelity researchers believe that the US economy is in the late cycle, not recession, but that recession risk has increased).

Yet instead of lagging, the sector has surged, gaining about twice as much as the S&P 500 year to date through late September (though remember that past performance is no guarantee of future results).

Chart shows year-to-date performance of S&P Consumer Discretionary Select Sector Index, which has gained 24.61%, versus year-to-date performance of S&P 500, which has gained 11.68%.

Past performance is no guarantee of future results. Consumer discretionary sector performance is represented by the S&P Consumer Discretionary Select Sector Index. Data as of September 30, 2023. Source: S&P Dow Jones Indices, a division of S&P Global.

In part, that’s been due to the same macro themes that have driven the stock market higher this year (in spite of the sense of pessimism in the air). The economy has continued to expand this year, inflation has slowed, the Fed may be nearing the end of its interest-rate-hiking cycle, and the chances of a soft landing may have improved—all of which are generally good for consumers.

And in part it’s been due to unique issues impacting some of the largest companies in the sector. The 2 largest constituents in the sector, by a wide margin, are Amazon and Tesla both of which have experienced extremely strong gains so far this year as mega-cap, tech-related stocks have surged. Both companies have also been seen as potential investing plays on artificial intelligence, and both have reported some strong results during the year.