Charlotte, led by LaMelo Ball and Miles Bridges, have won the NBA's opening play-in match by beating Miami 127-126 after overtime.