Please refer to this article for mesh override: https://optics.ansys.com/hc/en-us/articles/360034915233-Understanding-mesh-order-for-overlapping-objects
When two materials have the same mesh order, and they overlap in space, the last one in the model tree takes priority.