Your best option is to pay the fine and attend a traffic school course to try to keep the violation off your record so it does not effect insurance.
Your appearance in court would be brief. The officer would testify to what he saw, possibly show a video of you leaving the lane, and there is essentially nothing you could say to avoid being fined.