I get an unexpected misbehaviour in Eevee and Material Preview with the attached scene objects.
If you rotate the view, you can see that part of the yellow object is rendered in front the green one (the small yellow rectangle) and part behind (the greater yellow one) or vice versa as they should be rendered either both in front or both behind.
No problem with the two orange objects, instead.
Green and yellow objects are the remnants of more complex objects that I reduced for the sake of simplicity in the attached file.
Can you give an explanation of this issue and a way to fix it?
Thank you.
PS .blend file follows:
https://drive.google.com/file/d/149uU4BfJISOLdi3flAWkFbNA4CmHiXtg/view?usp=sharing