Acoup's trench warfare series(?) had an excellent note re: armored vehicles. That dug-in (non-mobile) infantry was extremely difficult to dislodge (in the strategic sense, even if employed as a defense in depth tactically) but infantry out in the open was
much more vulnerable.
And by definition, infantry must be out in the open as it advances; distinct from when it defends.
Consequently, the purpose of armored vehicles (tanks, APCs/IFVs, SPGs) is not to trump infantry, but to provide the minimal survivable armor for the soldiers inside to allow them to advance.
And toss firepower on there, because why not, if you've already got an engine?
So, as ugly as the fact is, the important thing is a tank's utility to survive long enough to support an advance. Not survive against all odds.