Why do you want to use a Shimano cassette?
Clearly the best answer is to use all Sram 12 speed parts, including the flat top chain. Anything else is likely to be sub par.
If you do want to use Shimano, I would use Shimano cassette, chain, and Shimano compatible chainrings.
Lots of people share their experience here:
https://weightweenies.starbike.com/f...speed+cassette