Lydia Ko won her 19th LPGA Tour title at the CME Group Tour Championship, edging out Ireland’s Leona Maguire by two shots.