Pick up a "Dr Seuss" ratchet where the head swivels about 270° and there is another joint that swivels also about 270°. You definitely get the most starting point options.
Second, get some wobble extensions (give you maybe 10-15° of flex without any of the hassle of flex joints
Third, use a crow foot socket so you can offset the socket extension,
Fourth, come from the other side, put the ratchet forward of the compressor, doing a u-turn via the wobble and the crow foot.
You can only turn the crow foot about 1/6 to 1/4 of a turn because the laws of physics kick in but this is how I put in my forward post cat O2 sensor since it comes out the top of the exhaust.
The crow foot will let you put the extension in either side. That trick had come in handy in three occasions:
1) front post cat sensor. (sadly I didn't take a picture of that one, the pic shows the rear sensor which can be directly accessed)
2) both pre cat (though I didn't have to do it reversed)
3) right rear brake line: there is a union about a foot inboard of the left wheel. It is impossible to get two fingers in there much less two wrenches to work that union.