> rewriting a product only to change programming language is _always_ a bad idea,
There are of course a few scenarios where changing the programming language is a more defensible, less "always wrong" kind of thing. An extreme case would be something like a COBOL system that needs maintenance and you have trouble finding people who can do it.
Or if you’ve written the mvp in python and realize you have to meet some performance metric that is 100x what your system is capable of.
It is bizarre how popular Python is for a language that is as poorly operationalized and encourages such poor architecture choices.
I would argue that the number of successful companies with Python code bases is the best evidence that language choice doesn't matter.