It'll be very difficult to beat public transit in terms of overall cost/km. Especially in Japan where it's fairly expensive to maintain a vehicle.
With that being said, I don't have any public transit in my town so I have 2 cars. One for commuting and one for fun.