The Pitris (ancestors) have said that the son continues the race and supports the relations; therefore, to give birth to a son is the best of all pious acts. Therefore, your this son should not be abandoned.
कुलवंशप्रतिष्ठां हि पितरः पुत्रमब्रुवन्। उत्तमं सर्वधर्माणां तस्मात् पुत्रं न सन्त्यजेत्॥