The JF17 may actually be a more mature multirole platform than the J10C, since the PLAAF has J16s, MKKs and JH7As for strike missions as well as its vast and growing UCAV fleets, it really doesn’t place great importance in adding strike capabilities to its J10s.
I think the JF17s existing integrated ASuW capabilities especially will be of great interest to Iran.
Another factor that may benefit the JF17 is engine compatibility and future proofing.
J10s have moved off AL31s to WS10s, even if China supplied new built J10s with AL31s, the model used in the J10 is different from those used in flankers.
With a JF17 purchase, Iran could potentially future proof itself in terms of engine maintenance if it also went for a future J31/35 purchase.
With Iran getting Su35s, it takes a lot of the pressure off it’s light/medium fighter purchase decision in terms of top-end performance, so good-enough may well be sufficient for their needs.