Let's say (hypothetically) governments find a way to shut down Bitcoin or centralize the whole thing. Even if they succeed, Bitcoin will survive because of its open source nature. Meaning, anyone with the code can just re-launch BTC and restore its decentralized capabilities. Not even purging or banning GitHub (or similar) repositories will be able to destroy Bitcoin. And don't get me started on Quantum computing.
At this point, I'd say Bitcoin is immortal. Wouldn't you agree? If not, may I ask why?
Your input would be greatly appreciated. Thank you.

Bitcoin never dies I agree with you. Technological Durability We know that the distributed structure of the Blockchain, the Bitcoin network is highly resistant to cyber attacks and technical failures.
Bitcoin is resistant to government or institutional control, so there is no possibility of a government or leader stopping Bitcoin. Bitcoin has survived many crises, ban attempts and price crashes in the past, and if such a situation occurs again, it will survive again.
So far, Bitcoin is considered sustainable, secure and difficult to destroy, but it is still threatened by risks such as 51% attacks, quantum computers or protocol vulnerabilities. While these have never happened, it is clear that these are potential risks that bitcoin could face and we cannot deny that. So, to be fair, it's still too early to say that bitcoin is immortal.
Also, bitcoin was created after the 2008 financial crisis and so far the only crisis it has experienced is the covid pandemic. It has never experienced and faced devastating crises like world war or the great depression (1929-1933), 2008 like what gold has experienced. So there is not enough data yet to assert that BTC will be immortal if suddenly the world experiences similar things.