Morocco only broke through in the second half of the Group A match, with goals from Brahim Diaz and Ayoub El Kaabi.