Walmart could be put at a competitive disadvantage in Brazil if a bizarre merger between the company’s two larger rivals proceeds and secures regulatory approval.