These stocks have reacted to AI in surprising ways, but investors should also consider their future prospects.