Give the ship health and make the obstacles/walls deal damage, and let the player die from too much damage.
If the ship has 3 health, the walls and big obstacles could deal 3 damage and kill it instantly, while the small obstacles only deal 1 damage.
Maybe the ship also deals damage, and the small obstacles have 1 health, so they're destroyed when they collide with the ship.
Give the ship health and make the obstacles/walls deal damage, and let the player die from too much damage. If the ship has 3 health, the walls and big obstacles could deal 3 damage and kill it instantly, while the small obstacles only deal 1 damage. Maybe the ship also deals damage, and the small obstacles have 1 health, so they're destroyed when they collide with the ship.