I’ve been attacking quite a few gyms recently, and I find that dodging can make a difference if you manage to do it well compared to pure attacks. I’m still practising, but I find that if i swipe immediately after the screen flashes yellow, I can dodge. The trick I think is to work out the rhythm. 1-2 attacks, wait for flash, swipe.
With the dodges, I can easily use 1 pokemon to take on 2-3, sometimes even 4 when I get super lucky with dodging, which beats my 1 for 1 trade during pure attacks. I expect that if you can master the dodge, you could easily use 1 pokemon to take a gym.