They would do some bureaucratic tricks to make sure both participate.
A few seasons back both Energy Drink FC teams were not only in the same competition, but even in the same group.
So if that was allowed, I don’t see any issues with any of these types of situations in the future.