Brazil, which is aiming for the Olympic gold medal in men's soccer for the second time in a row, defeated Germany 4-2 in the first match, but Richalisson wrote a hat-trick and took the lead in the victory.