Symplectic rigidity of O'Grady's tenfolds