1v1 Probiballity

If you decide to shoot the 3 and he guards the shot, you miss and get 0 points. If you drive and your opponent guards the basket, he also defends you and you miss.
If you decide to shoot and your opponent guards the basket, you make the 3 point shot with 50% probability. If you drive and your opponent guards the shot, you get past him and score an easy layup, which is worth 2 points.
With what probability should you shoot the 3, assuming both players play optimally?