How are defensive stats measured?

There are passives and actives that give a flat bonus to certain resistances. Would i be better off getting more hull or more resistance to all types of damage?