This is not the government
Also Modi is an elected popular leader. India's censorship laws have been passed through the normal means. If Musk pushed back most Indian institutions would rally against him.
de Moraes is a chief justice making decrees that it's not clear he has the power to make. He's doing it in an unhinged fashion. Getting out of the country until things cool down is probably the smart move.
ps. every major company has applied double standards wrt censorship requests in the past, the subject has a long history
As a distant observer, it seems wild to me that anyone thinks this is about free speech.