1) You already have oil-powered power plants, and
2) You have efficient, modern trash incinerators that can recover 90%+ of the energy in plastics, and
3) You make sure that all plastic garbage actually ends up incinerated.
Because the utility you get out of making plastics out of oil, using the plastics for something, and then burning it, is higher than just straight up burning the oil.
But if you fail any of these three points, you're better off banning single-use plastics.