Defending champions Argentina scraped through a tense Group B opener after Morocco equalised through a controversial penalty before Lautaro Martinez sealed it late.