Branded Lemon's

So I am thinking of purchasing one of these vehicles from a dealership that has about 15 of them, models from 2018-2021. However, only 6 of them have the new batteries. I'm wondering what the story is with the other 9. Were they just returned through the buyback? Are they in 80% jail? If I buy one of those, will I have to reach out to Chevy to get the battery replaced? I'm sure there are other scenarios, but I felt I would come ask the question of the community that knows the car best. Thanks for any feedback in advance.