BKE_mesh_new_nomain_from_template does not add a custom data of type CD_MDEFORMVERT, so it is not copied from the original mesh to the resulting mesh.
Studying the code, I realized that by default the meshes have this customdata set not to be copied.
But the requiredDataMask callback seems to be a workaround for this.
Ref T74377