Hello! I took way too much time to realize this, but the issue is that both cubes are sharing the same index buffer. So for the second cube, it ends up flipping its faces twice:
I updated the first cube to use a copy of the index buffer, so each buffer is flipped separately: Babylon.js Playground (babylonjs.com)