Manchester City sought to defend an early Erling Haaland goal, but Gabriel Martinelli came off the bench to equalise.