Walmart Inc. beat profit and sales expectations on Thursday and set a strong full-year earnings forecast, showing steady consumer demand at stores even as supply-chain issues and rampant inflation pressured margins. While Walmart increased prices on some products, the biggest U.S. retailer still undercuts rivals due to its scale and negotiating power with suppliers, helping…