DCC and battery.RC systems provide constant voltage.
The 2K2 works perfectly on DCC, DC and Battery/RC
The P5 works on DCC, and by adding the optional boards can do commanded sounds on battery/RC
The P5 will not work on Analog DC
The P5 and 2K2 will work perfectly on DCC, automatic sounds, standing sounds, and commanded sounds plus several extras like controlling the volume or muting from your remote.
The P5 will work on Battery/RC for all the basic automatic sounds and standing sounds. you will get the toot after a stop, brake squeal, and even coupler crash when switching.
The P5 can even provide some commanded sounds if you add the extra boards from RCS and Phoenix.
Use a 2K2 board for Analog DC. The 2k2 has several features to allow things like the grade crossing to be activated by dropping the speed slightly when running fast. It will provide standing sounds, the correct number of toots when starting or stopping, brake squeal, etc.
I run DCC on my layout. I now use the 2K2 exclusively locos where I want the Phoenix system. I foundit very annoying that the P5 does not work worth a hoot when I take a loco to a friends house that does not have DCC, In fact, the sounds that the P5 makes when starting up on DC are so wrong as to be embarrassing and are worse than no sounds at all. If you never slow the loco to below 35 scale miles per hour, the P5 is OK on DC, but otherwise turn it off. For me, it is worth the few extra bucks to have the loco work on both DCC and Analog DC.
Anyone who spends more than 200$ per loco for DCC and sound has not learned where to shop or what to buy.