They both attack twice, but only the second attack forces the opponent to switch out. Hope this helps!
Source: Personal experience.