BMW beats Mercedes-Benz with record sales last year