BuzzFeed Inc. shares surged by a record on news that the digital-media company plans to use OpenAI to bolster some of its content creation.