That depends on the unit and match-up in question, but usually there is a health difference to compensate for that. “Armored” units can be balanced with a lot more health than “light” units; and they usually have more health.
You can actually look at the Science Vessel compared to the Raven for an example of this. Science Vessels have 200 health. Ravens only have 140.