The more gears, the slimmer the chain gets. Usually it is OK to put a narrower chain in place of a wider one. It depends on sprockets thickness and particular chain design. This @tayachain works with @RideShimano cassette flawlessly.
Colourful Taya chains: https://amzn.to/3r5GkBz