It’s not that ornamentation isn’t pretty, or doesn’t have any function. “Pretty” can be soothing.
It’s that if a particular tool is getting most of its prettiness from clearly being good at something, people will ultimately find it prettier than the same type of tool that has gorgeous ornamentation.
A hammer that a carpenter sees they can trust will just be “prettier” to them than a shiny lattice-patterned hammer that breaks.
A car with ornate patterns won’t achieve the same level of “prettiness” as one that people feel is actually aerodynamic.