When you create a transaction with an OP_RETURN output, you…
When you create a transaction with an OP_RETURN output, you're essentially creating a transaction that says "this particular output can never be spent" and you attach your data to it.
When you create a transaction with an OP_RETURN output, you're essentially creating a transaction that says "this particular output can never be spent" and you attach your data to it.