SerializeWithFallback roots the DefaultSerializer and is therefore incompatible with trimming and NativeAOT.