In Theory this is possible, since the Microchip Ethernet PHYs has “auto polarity detection and correction” This means the KSZ9031 and KSZ9131 can correct this. With Auto-MDI-X it is also possible to swap Lanes Aand B and C and D.
But we never tested this but according to the docs this should work.