South Australia has secured the title of the best state to do business, narrowly beating Tasmania, which landed in second place.