The GDR is not an outright replacement for any unit, because of its Uranium requirement.
Can I turn that around and deduct that you can only upgrade to a unit that has the same (or maybe fewer) resource requirements as the one you are upgrading from? I.e. a Spearman could upgrade to a Pikeman, but not to a Swordsman as that has an iron requirement? Or is it simpler than that?