Quantum coherence versus nonclassical correlations in optomechanics