Yikes....
There's stupidity getting you out of a bad situation by accident, and then there's stupid-ex-machina like this....
Just... oof, this is bordering on lowest common denominator content, when I used to think it was at the very least an interesting story...
The HEAVY lean into stupidity for funny is like, actually damaging to the quality of the writing IMO (that means this is an opinion and you don't need to rattle your sabers and "um actually my opinion is different so you're wrong")