I agree here that it can depend on the infrastructure which option is better. But one way to look at it is that if a car is parked in the bike lane then the bike will be in the car lane == more risk for the bike. The bike is also at risk for being doored from either side when passing the taxi.
The best option would actually be to have some indicators on the taxi which shows which doors are "hot" and expected to open. A taxi with closed doors is always a huge risk and will always need to be passed outside the dooring range.