>But that's just market cap, which isn't comparable in any way to GDP.
If the units are correct and the same, then the comparison makes itself. The distance between two cities and how far an electric car can go on one charge are vastly different things, but since both can be measured in the same units, the comparison makes itself.