The arrival of German discount grocer Lidl and Amazon’s purchase of Whole Foods Markets have ratcheted up the already intense grocery wars and put new pressure on existing players, including Walmart. But one analyst thinks the discounter is well-positioned for the battle.

Groceries already account for more than 55% of Walmart’s U.S. sales. And by adding Jet.com to its portfolio in 2016, the…