Harry Potter can cast spells
I denounce that notion.
All he knows is how to use a magic wand per D&D 3.x definition.
Take away the wand and he can't do anything.
Fair enough. You won't hear me claim that giant robots are in any way realistic. But within the giant robot genre, the idea that giant robots are practical machines is pretty much the defining trope.
"Realistic" would, in this case, be more like BattleTech and Armoured Trooper VOTOMS.
With Mobile Suit Gundam, Macross, etc. being good examples of "Non-Realistic".
I'm mostly familiar with BattleTech in this case, but there they mostly known the amount of energy a given laser weapon etc. produces based on the amount of armour destroyed. Or the velocity of projectile weapons. Even if a given 'Mech is capable of atmospheric re-entry (and surviving the descent+impact - most can't).
Also, a 'Mech in there *can* do a handstand (provided it has full arms, ofcourse), but it simply isn't practical on a battlefield. They also have pretty good acceleration/deceleration and mobility (some can to a speed of 200km/h within 10 seconds, and possibly go back to 0 as well within the same 10 seconds).
or a walking tank that stands upright so that everyone within 10 miles can have a clear shot at it, is ever going to be a good idea.
In BattleTech/MechWarrior, all combat vehicles carry built-in ECM powerful enough to cause enough interference so that effective ranges are reduced to within 1km. Also, I don't think that any BattleMech is actually tall enough to do that (a typical church tower will be higher).
Still, a mecha has uses that cannot be fulfilled by regular vehicles, namely their efficiency in traversing rough terrain.
Like designing a fighter plane that lugs 20 tons of extraneous arms and legs into a dogfight
Using BattleTech again for the example (it has Land-Air-'Mechs): a typical LAM is worse than a regular BattleMech/AeroSpace Fighter of the same tonnage in any given mode. The only benefit it has is where you can store it (AeroFighter Bay or BattleMech Bay are possible), as well as increased mobility/utility. On a pure combat-efficiency, its utterly worse. Oh, and LAMs are pretty much extinct in BattleTech (last known factory destroyed some 30-years before the "current year").
Tanks -------------- Battletech ----------------------- Gundam ------------------- Aircraft
______________________________________________________________
ARMOR -------------------------------- BALANCE -------------------------------- MOBILITY
As mentioned above, I'd put BattleMechs a notch higher on the mobility part - a lot higher.
The Locust LCT-6M (20-ton canon light 'Mech) can reach a speed of up to 302.4km/h and slow down back to 0 within a timespan of 10 seconds. I doubt that any Gundam can match that (pure foot-pumping action, at it). There's also 'Mechs capable of using built-in jump jets to travel some 200-300m within those 10 seconds as well (Gundams might be a better match here).
getting a groundhugger to travel >X shouldn't be terribly difficult under most circumstances
Well, it is in BattleTech.