In isolation, Pakis hold the edge. However, if there's ever a war between the two countries (eg: over Balochistan), then India will heat up Pakis' eastern border, to thin their strength against Iran. Iran doesn't really have such a "heating element" that could blunt its war efforts.