Neither. Both cost significantly more to build and maintain than at-grade intersections. That's part of the reason more and more grade separated highways are being demolished and replaced with surface roads.
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.