Well, with 11-speed we know from experience you can mix-and-match. I run a SRAM Force 11-32 cassette on my road bike that is equipped with a mix of 105 and Ultegra components. Also the 12-speed groupsets of both manufacturers seem compatible if threads like this one are to be believed.
Still, probably sticking with one manufacturer will give you better shifts and chain retention.