The Prophet صلى الله عليه وسلَّم said:
The Muslim who fasts (in Ramadan) has two joyful occasions: one when the person breaks the fast and another when the person is judged by his Lord. (AlBukhariyy and Muslim and others.)
The first joyful occasion is when the Muslim breaks the fast and by that he/she gains back his/her strength.
The second is in the Hereafter at the time of Judgment. Allah will speak with his Speech to the servants judging them about their deeds; Allah’s Speech is not a sound, a letter or a language.
It is not a condition for the fasting person to be righteous but his/her fasting has to be correct and he/she has refrained from what prevent acquiring the reward of fasting.
The Prophet صلى الله عليه وسلَّم also said: the one who feeds the fasting person to break the fast (after Maghrib) will acquire a reward like his reward. (AtTabaraaniyy, alBayhaqiyy, and atTirmidhiyy.)
It means one acquires a reward similar to the fasting person’s reward, because the person who fasted Ramadan did fast the obligatory fasting, whereas the one who fed him did do an optional doing مندوب.
Saying that one acquires the exact same reward from all aspects implies equating the reward of the obligatory doing with that of the optional (nafl ) doing (but this is not the case.)