The actual actuating part of a self-driving car is fairly easy (just turn the wheel, apply the breaks), it is the control system and sensing that is key to success, the former being software, and the latter (LIDAR) that Google is heavily invested in while Toyota is very late to that game.
Right now, if I was a betting man, Google will beat Toyota. Of course, Toyota could always flip the table and take some risks, but that isn't what Toyota is known for. If it happens great! But I don't think any smart money sees Toyota having a clear advantage ATM.