@pixel, njkayaker is correct. I had not thought about the cassette range being different. You might or might not get away with swapping rear wheels. There is risk of damage if the chain on one bike isn't long enough to accommodate the extra two teeth on the rear cassette from the other bike. You probably should not take the risk. Just swap the tires instead.