Testing the key role of the stellar mass–halo mass relation in galaxy merger rates and morphologies via DECODE, a novel Discrete statistical sEmi-empiriCal mODEl. Issue 3 (15th September 2022)