South Australia is launching a royal commission into artificial intelligence, with the state's premier saying society is at a "fork in the road".