Is this what you’re hoping for? Or do you want the yellow one to trim the gray one?
I used the Dave Method and instead of the native Subtract, I used BoolTools2 so I didn’t lose the trimming component and so that the Dave Method actually worked.
Or maybe this one?