Carlos Alcaraz won the break point with a spectacular shot against Daniil Medvedev to finish the rally.