Take it to court for sure. Explain to the judge that you were merging onto the highway and you didn't need to turn right. If everyone including the officer weren't letting you merge, then there's no way they can justify the ticket. Emphasis how the officer was going to screw you outta your merge, and he'll get pissed at the idiot officer and throw it out.