The trick is to make the healthy option the easy route. That's what Paris did (creating more bike lanes, getting rid of parking spots, closing roads to cars) and cycling is now more popular than driving [1].
[1]: See, for example, https://bicyclenetwork.com.au/newsroom/2026/03/11/how-paris-...