Lautaro Martinez fought through the pain barrier to help Inter Milan win a classic.