What can an Apache do that a Warthog can’t? ...generally speaking.

Organization and particular electronics aside, I’m having trouble seeing the pronounced difference in capabilities between VTOL gunships and STOL armoured attack “fighters”.