Corinthians secured a 3-2 victory over Sao Paulo in a dramatic Campeonato Brasileiro clash on Sunday in which both sides finished with 10 men.