We're talking about working simultaneously for direct competitors. You don't do that. You get rightfully fired from whichever company you're stabbing in the back. It's a conflict of interest, period.
Freelance or contractors hired only for a specific project does not apply.