as far as one-on-one goes with phalanxes, you just have to make sure you have more or equal frontage than the enemy
I actually find that a few ranks deeper phalanx will rip through shallow ones.