Is the R5-D8 droid mathematically inefficient?
If you spend an action on him you get to roll a die and on a dodge or focus you get to repair 1 hull.
Well isn't that the same as choosing focus as an action?
(Preventing the hit instead of repairing it.)
In fact isn't focus better because you could choose to spent it in an attack?
In addition if the ship has more than 1 agility/defense die then focus is an even better decision.
Therefore, if flying an X-wing it would be better to select focus as an action
instead of activating the R5-D8.