With 235K on the injectors… they may not be leaking (your test proved that, Thank You) but cylinder #2s injector may not be operating properly. It may be hanging open and causing the misfire. OR the #2 spark plug or coil way also not be firing causing raw fuel to be dumped into the exhaust.
I have the tools to run a compression test and I’d do that first thing here but that may be a bit much to ask for you. Here are some quick and cheap things you can check first. Whenever you get to the point of…Whoa, no, not doing that…take it to a good independent repair shop. Avoid chains.
I’d suggest removing the #2 spark plug and looking at its condition. Google “sparkplug condition chart” for a picture. That will hint at the condition of the cylinder itself. Replace just that plug, for now. See if the P0302 and the P0172 go away. If it goes away for a while and then comes back in the same cylinder, the rings or valve seal may be oil fouling that plug telling you the engine is wearing out.
If the problem stays, try swapping the coil from another cylinder. Does the misfire move? Or stay? If it moves, the coil is bad, replace it. Consider replacing all the plugs and spark plug wires (if the engine has any)
If it is still cylinder #2 misfiring, it isn’t the sparkplug, it isn’t the coil or wire soooo, maybe the injector is hanging open. Buy a set of O-rings for the injectors. Remove the injectors and fuel rail as an assembly. swap injector #2 with its neighbor. Install new O-rings on each injector. They are so old, the O-rings WILL leak if you don’t replace them all at this point. Re-install the rail. Does the misfire move to where #2s injector now sits? Replace the injector… or ALL the injectors… rebuilt ones would be OK.
The P0442 is a separate problem, probably a bad gas cap. Don’t worry about that for now.