Given the prevalence of client-side rendering, I think all the major players have learned to circumvent this. They can run a full headless browser instead of just looking at the raw HTML, and detect when the JavaScript seems to have rendered the content.
That said, user experience (in this case site speed) can be a factor in how Google actually ranks pages, so that could be another motivation.