Depends on the use case.
I wrote a webserver in python the last three years and am now changing to java for a new position, and it feels like programming with training wheels.
But then again i did some data science with python and could not have imagined doing it with java.
I’m not sure if I understand your question, but if you are trying to build a solution, you will have to know the problem. I am writing said mailings, database, rest interfaces etc. for which Java and Spring boot is pretty useful. Some people might consider this antiquated. I also used python for data science stuff in the past. Neither would i like to have been using java back then, or python now. But in both cases i needed to know what i was building before i (or my employer) chose the technology to use.
If you are offered a position where you will have to use a technology for something you think its not a good fit for then run. Some people might even be more interested in you if you tell them as it makes you look more experienced. And you’re right, it is usually not worth it to have religious wars over 0.xy percents of performance gain, as long as you’re not trying to build a house with a screwdriver.