In a way, interchangeability is conditional. As 5twins noted, you must be mindful of the camchain tensioner systems.
The XS1 and XS1B cylinders have a bridge in the camchain tunnel, which can only handle the type "A" (and maybe type "B") tensioner system.
When the camchain stretches too far, the tensioner pushes the camchain into the bridge, abrading it.
The earliest cylinders, up to s/n S650-002486, used different length front guidebar hollow bolts, and had a longer bridge at the bottom, requiring a clearance notch in the center guide stopper.
Early XS1, with clearance notch:
Late XS1 and XS1B:
In mid-71 XS1B, Yamaha fitted 306 XS2 type "B" tensioner system, 6-bolt tensioner on a 4-bolt cylinder. I believe it retained the tunnel bridge, making chain grinding on that bridge worse.
With the 306 XS2/TX650 cylinder, the bridge disappeared, the 6-bolt tensioner base and the wider/grooved headgasket surface appeared.
256 XS1 - Tunnel bridge, narrow headgasket surface:
306 XS2/TX650 - Open tunnel, wider/grooved headgasket surface, almost indistinguishable from the later 447 cylinders. (Thanx, Mailman)
In summary, the 256 XS1 cylinder, with its bridged tunnel, will only work with the type "A" (and maybe "B") tensioner system, and 256 camchain, essentially keeping it in the XS1 world. But, you can put later cylinders, on an XS1, including the 750cc cylinder kit.
Starting with the 306 XS2, having the open tunnel and wider headgasket surface, all those cylinders should be interchangeable.