CNBC’s Jim Cramer has flagged TJX Companies Inc.

(NYSE:TJX) as "a buy" due to its strong position as an "inventory play," while simultaneously noting that retail giant Walmart Inc.

(NASDAQ:WMT) "seems cheap" following a recent stock dip.

Cramer's market commentary highlights a divergence between off-price discount retailers and traditional big-box giants, both of which are currently grappling with shifting consumer habits, evolving macroeconomic pressures, and massive inventory-management overhauls.

TJX Capitalizes on Excess Stock Cramer emphasized that TJX thrives when department stores face oversupply.