فلا ينافي الخبر الاول لانه قال يبني على الجزم والذي يقتضيه الجزم استيناف الصلاة على ما بيناه والامر بسجدتي السهو يكون محمولا على الاستحباب لا لجبران الصلاة
So this does not contradict the first report, because he said: "He should build upon certainty (jazm)," and what certainty necessitates is the restarting of the prayer, as we have previously explained. As for the instruction to perform the two prostrations of forgetfulness (sajdatay al-sahw), it is to be understood as a recommendation (mustahabb), not as a required compensation for the prayer.