Getting old cars off the road meaningfully improved safety even if it didn’t do much for the environment.
Obviously, that’s average many cars are significantly worse. Run the numbers and swapping a high mileage but poor fuel economy car for a hybrid/EV and the payback can be a net positive.