As mentioned above, the Spitfire XIV entered service more than a year before the P-51H did, months before the P-51D did and at a similar time to the P-51B.
Mustang did it's fighting beyond the range of any Spitfire with guns.
The MkXIV could take on the Me109 and FW190 with the 90G drop tank fitted so it could in fact fly as far as a P51 and still fight.