A 10-speed cassette won’t have the same spacing as 11 speed. The indexing won’t work properly, and you’ll be in-between gears a lot.
Using a specific wheel/trainer tire for the trainer will reduce tire wear. It you install an 11spd cassette on the trainer wheel, the 2 wheels should swap back and forth with no adjustment.