अग्निरस्मि जन्मना जातवेदाः घृतं मे चक्षुरमृतं म आसन् । अर्कस्त्रिधातू रजसो विमानो अजस्रो घर्मो हविरस्मि नाम ॥
“I am Agni, omniscient by birth, Light is my eye and Immortality is my mouth. I am the three-fold Light that measures the universe. I am both immortal energy and matter.” SOURCE
In this verse Agni is saying that he is Omniscience by birth. And also he is saying that he is immortal.
But this contradicts Gita 2:27 :
BG 2.27: Death is certain for one who has been born, and rebirth is inevitable for one who has died. Therefore, you should not lament over the inevitable.
It say the one who is born he/she will die.
MY QUESTION : In RV 3.26.7 Agni is saying he is immortal and Omniscience by birth but in the gita anyone who is born is certain to dies.Angi's immortality contradicts gita 2:27.
What is the solution to this apparent contradiction?