When fight m4s, t34s, and what not, i usually flank them and hit the sides. M4 has the machine gun port if you have to fight head on. The t34 can be hit in the turret cheeks as well.
I would say that you should always try to avoid fighting top br tanks head on if you are in a full uptier.