Walmart substitutes your item for a similar item when the product you ordered is out of stock.
However, if you don’t prefer substitution, you can choose the items that you don’t want them to substitute for you at checkout and they would remove them from your order, if out of stock.