I think move to Canada makes the most sense. Similar laws to the USA, close and a similar set of advantages that you've described.
low salaries, high taxes/cost of living, less jobs and less dynamic job market.
If you operate outside the EU GDPR will apply to all your EU users if you are offering goods or services, or monitoring their behaviour in the Union. (3.2)
Getting a german work visa for Indians is not easy. They don't have "liberal immigration laws" , just less competition than H1B.
Just hire remote is not an answer for a lot of companies.
If you think you can just do some programming job in fire and forget you are going to be surprised. You have to actually think about what task to give to remote team and what not. What areas are strong for who and divide work accordingly it is a lot of work in itself.
Last but not least, there is ton of legal stuff, compliance, what type of customers you are tending to. Some big corps own specific parts of code and sending something outside country could get you into trouble.