Memory chipmaker shares led a rebound in South Korean stocks, demonstrating investors aren’t quite ready to throw in the towel on the artificial intelligence boom.