A Wal-Mart corporate spokesperson confirms Wal-Mart stores do not have to match their other store's prices or the prices on WalMart.com. Wal-Mart will,
however, match the price of any local competitor's printed advertisement for an identical product.
Your best defense is to know store policy and shop around for the best price before you head out to buy.