The comment I replied to makes the point that bikes are better "no question" from the cost perspective since car maintenance is obviously more expensive.
It is a more complex equation than that..
Probably the hardest variable to quantify is the risk of injury/death.
While I agree it could be better if everyone used bikes, but in the current reality if I choose to ride my bycicle, I'm going to share the road with 2000Kg metal boxes which are sometimes driven by distracted drivers, and I'm not willing to take that risk.
So even if I combine all the costs associated with both options, and bikes are cheaper objectively, it will still be more expensive for me.