Such anomalies can be prevented by transactional causal consistency (TCC), the strongest consistency model that can be achieved without expensive consensus protocols [5, 19, 21] required in stricter consistency models such as serializable transactions.
BTW, the testing was based on https://docs.mongodb.com/manual/reference/mongodb-defaults/ where the majority concern (default starting in v5.0) was used on the transaction level (overriding the other 3 levels) and “All operations within a transaction use the transaction write concern” (so, majority reads as well). It’s still unclear if TCC is actually provided.