Canada played out a dour goalless Copa America draw with 10-man Chile to claim second place in Group A and progress to the quarterfinals in their first appearance.