The alternatve is to do "cleanroom writing": you don't interact, therefore if you write something similar, you can argue you independently invented it.
I had the same problem in a scientific research lab where collaboration with another lab runs the risk of not being able to patent an idea, because if the other team had the same idea or anything close enough to it, we couldn't claim to be the inventors.