Mid-drives apply power at the pedal and therefore go through gears, and therefore can go up steeper hills for the power.
Hub drives apply power at the wheel hubs. They are cheaper and smoother (no backlash), so depending on application hub motors may be superior.
Personally I like help up all the hills so mid-drive all the way.