100% this. Nothing turns a 10x into a 0.5x faster than telling them they can't fix the horrible issues putting your api performance in the shitter under load, and instead they have to go help automate the QA build process.
Of course people have to work on what is most urgent at that time, that's just business. You can't just work on what you love to work on, unless you have practically unlimited funds.
Most projects of any size have a number of people working on them at the same time. At least to me it seems best if you have someone that is really good at something to keep them focused on that task with momentum and split other portions of the team on the urgent task.