IIRC, Barcelona bought Griezmann first and they did not have enough money for Lautaro after that. If Martinez was their top priority, the deal would have happened.
To be honest, now, I do not see him leaving unless some big fat contract is on the other side. He is happy in Milano, he is adored...