The topic raised was beautiful was justified on the basis of Medical Science not on Gita.The act of masturabation is not justified .As Per Vedic Culture observation of Bhramcharya is to be taught from early school life known as Gurukul:
Bg 6.14 Thus, with a serene, fearless, and unwavering mind, and staunch in the vow of Bhramhcarya(celibacy), the vigilant yogi should meditate on Me, having Me alone as the supreme goal.
BG 17.14: When worship of the Supreme Lord, the Brahmins, the spiritual master, the wise, and the elders is done with the observance of cleanliness, simplicity, celibacy, and non-violence then this worship is declared as the austerity of the body.