No. 17 Alabama held on to beat No. 5 Georgia 24-21, handing the Bulldogs their first home loss in six years.