International Business Machines Corp. is buying the data-streaming platform Confluent Inc. for about $9.3 billion, marking one of its largest takeovers yet and a major bet on the kind of enterprise software that artificial intelligence tools need to perform tasks in real time. IBM will pay $31 a share, according to a statement issued Monday. The enterprise value, which includes debt, is $11 billion, it said.