If your car will not charge the battery when you are driving, something is wrong with the car or the battery.
Since you said you replaced two batteries at the same time in two different cars, I suspect the batteries are faulty.
A small charger, battery tender, kind of thing isn't going to hurt...