Utility can't be measured directly, and must be inferred from a consumer's behaviour. It's begging the question to infer an agent's utility function from their behaviour and to simultaneously conclude that the behaviour maximises the utility function: that's true by construction.
On the other hand, we can assume a functional form for an agent's utiilty for a given basket of goods. I guarantee that real-world preferences are more complicated than any function we can write down, so any prediction we make about an agent's preferences will almost certainly be wrong.
All in all, utilities are a nice toy, but aren't really any use outside of the world of theory.