Selective entanglement in a two-mode optomechanical system