Sinner beats the bête noire Medvedev and wins the ATP 500 in Beijing