Both examples will have equal statistics at level 100.
When a pokemon evolves it gains higher base stats, for example a charmander has 60 base stats in sp attack, but a charizard has 109. Having higher base stats does mean that it will gain more stats with each level compared to a pokemon with lower stats, but this does not permanantly handicap the lower base stat evolution.
Ignoring evs/ivs/nature, a pokemon's points in an attribute is calculated only by its CURRENT base stats, the amount of levels it spent with lower base stats during a previous evolution does not affect it as that is not part of the calculation.
If this doesn't make it clear, just say :)