Appreciate your point but this is a false dichotomy - (to me, at least) there's beauty in function. In fact, it's sort of the only non-subjective aesthetic.
Code like the Linux kernel isn't necessarily all beautiful in terms of overwrought abstractions, but I find quite beautiful the accretion of small changes and thought over time that has made it suited to task.
There's a balance; too much tech debt and the code isn't profitable. But too little tech debt is not profitable either.