Yeah it's all tricky judgement calls out there, and you were kinda put in a bad situation given the passing rules and the two cars slowing way down in front of you.
Given time to watch a video over and over (which says nothing about what you might do in a split second on the track), probably the ideal call was to blast on past that whole scene on the far right as soon as it was obvious the Lotus and Mustang were braking down to like 10mph. At that point you may as well consider them part of the incident rather than cars to obey passing rules with. But it all depends on the group and the drivers and the track marshal and how the weekend's been going and that conversation 20 minutes earlier in the paddock and and and...
It's just good to analyze afterwards and think these things through and prepare your mindset for the inevitable next 10 or 20 times you'll be placed in situations that require that sort of judgement call.