Lautaro Martinez came off the bench to score as Inter Milan beat Stuttgart 2-0, boosting their chances of reaching the Champions League knockout stages.