Real Madrid clinched its 34th La Liga title after the penultimate league match while Lewis Hamilton coasted to an easy victory at the Hungarian Grand Prix.