Jannik Sinner downed Daniil Medvedev to be crowned the Indian Wells champion for the first time in his career.