Mexico knocked Canada out of second spot in the North American vehicle production rankings last year for the first time as output there rose while automakers throttled back Canadian assembly.