Sleeping in a car during a thunderstorm is generally safer than sleeping in a tent. However, it's important to avoid parking under trees or other tall objects that may attract lightning. Also, make sure to keep all windows and doors closed to prevent rain and wind from entering the car.