I want to remove faces that are enclosed by another object and not visible to save resources (I will apply modifiers and export the mesh).
Something like this:
The closest thing I've been able to achieve so far, and the closest thing to the result, is this:
However, this also deletes the overlapping faces, and I don't know how to keep them. I have an idea that this is possible, but I can't figure it out.
I want to avoid the Boolean method because it creates a bunch of extra vertices and I'm trying to keep their number low.