SERVER-81498 added support for creating collections in distributed transactions and the idea was for some follow up ticket to handle the lack of prepare conflict support. That change was approved because the code is protected behind a feature flag that will never be enabled in production without the follow-up work being done.
However, there are some tests creating collections in distributed transactions getting executed with all the feature flags enabled. In order not to get failures in evergreen, we should consider protecting the code behind another feature flag that must be disabled both in production and testing enviroments.