Brazil and Morocco compete for knockout spot