Mechs are worse than tanks. Or rather, if you have the technological capabilities to build mechs better than tanks, you could build something else much better. This is evidenced by the fact that no military in the world uses mechs, but nearly all of them use tanks. For example, instead of mechs you could just build a much faster, more mobile tank, or even make 'power armour' for normal soldiers.