For N. American HO style trains with two rails and DC, the fact is that they are all DC...even the DCC decoder-equipped locomotives. It is just that when a layout has DCC operating the trains, the decoder rectifies the current to pulsed DC and assigns the voltage according to its programming to the motor leads.
In other words, the locomotives all have DC can motors in them, and that is what they need to turn...DC current. On a DCC layout, the decoder receives full voltage, constant voltage, from the rails, except that the power has a super-imposed digital signal that gives the decoder its instructions second-by-second.
As Jeff so aptly pointed out, if you have a length of rail in pairs receiving only DC current, whatever motors are getting the current will turn in the same direction. So, even if you have two locomotives with one facing away from the other, when you apply power to DC rails both engines will chase each other. It may not be the precise same speed due to assembly problems, or maybe even gearing designs, but they will both move in the same direction. Only an internal polarity switch would permit the two to move apart, and I don't think you'll find any/many HO engines with that capability.
With DCC, you tell the decoder to move the engine, and in which direction. The decoder reads the digital command in the signal imposed on the current, and does what it is told. So, on the same powered length of track, two engines will behave differently as commanded. Quite realistic in my view.
-Crandell