I have noticed that a lot of people looking for a used car make the "sunroof" a "must have" on their equipment list when looking for a car to purchase.
Having had sunroofs on cars that I purchased "new" and in each case having had to have the sunroof repaired (repeatedly) under warranty and after the warranty ran out. The repair was not cheap, but failure to repair would have caused water damage to the interior. Almost all failures involved the sunroof coming of its' rails and failing to close and seal properly. Seal failure itself has also occurred. This experience of chronic failure of the device to buy cars without sunroofs if I think I am going to want to own the car for a long period of time.
Having had sunroofs on cars that I purchased "new" and in each case having had to have the sunroof repaired (repeatedly) under warranty and after the warranty ran out. The repair was not cheap, but failure to repair would have caused water damage to the interior. Almost all failures involved the sunroof coming of its' rails and failing to close and seal properly. Seal failure itself has also occurred. This experience of chronic failure of the device to buy cars without sunroofs if I think I am going to want to own the car for a long period of time.