Fine particulate pollution is the easiest to filter, but not the only harm from urban air. Many chemicals like NOx compounds, CO, etc are not healthy.
Including increased accident risks, particulate, and chemical pollution together is a very different risk profile vs comparing all benefits vs a subset of downsides.
That said, you can filter out most particulates and there is little reason not to take this precaution.
Of course if you live in a very polluted city the harm is much more pronounced: https://ig.ft.com/sites/urban-cycling/assets/pollution-world...
Source: https://ig.ft.com/sites/urban-cycling/