The ATP dream fades, but Sinner leaves his head held high against Medvedev