In the event of high foot and road traffic you could have A or B go 3D. The fact it’s pedestrians suggests they have a lower priority.
Consider the physical risks pedestrians takes vs cars over a bridge, the lost time on each journey for cars vs people going over a bridge, fuel costs from additional car trips vs additional fuel cars expend going over a single bridge etc.
Even relatively modest levels of foot traffic pay for a cheap bridge that’s going to last ~50 years.