Buying what you want rather than what you need is an example of:

comparison shopping.
a smart shopping habit.
controlled spending.
an unhealthy spending habit.