there almost two different tools. you cant replace one with the other. a cordless(or air powered) impact has lots of torque for rusty nuts, and decent speed for when there loose.
An impact driver has decent torque, and no speed as you have to readjust after every hit, but, it drives your bit/socket into your fastener at the same time its turning. makes it easier to loosen a stripped screw/bolt.