I think you need a mixture of both because of their different costs, and weaknesses.
Tanks need gas and munitions to operate, they cost steel to build, and their effectiveness can be halved by air power.
Soldiers need food, their effectiveness can be increased by muntions, they are cheap to recruit, but are also easier to kill.