Istikharah is done when a decision is to be made in matters which are neither obligatory nor prohibited.
But Istikharah can be done in all kind of other permissible matters where a choice needs to be made such as buying something permissible, taking a job or choosing a spouse etc.