For me, it depends in part on how hilly the route is (hilly=road bike). In general, it also depends on whether you can stay aero for the entire distance of your race. From what I've read, if you can't stay aero for at least 2/3 the time then you are better off on a road bike.