Seems unlikely as you’d have the sunroof closed which should retain it pretty well… and this isn’t a common thing despite I’m sure a lot of people using automated washes.
If you have access to the FSM maybe try to dig up the install/repair procedure for the gasket..
I haven’t checked 2021 specifically but at least on older model years the gasket wasn’t available separately for the cruiser, though it is for the LX. Yes this sounds dumb, but that’s what is in the parts system.
So you may end up getting a new panel out of this.. but have to trust the dealer...