Like Mark T wrote, a lot of cars can hold a bass. The problem is how difficult is it to get in and out, do you have to faster the seatbelt so the alrm doen’t go off due to the weight of the body, is the neck resting on something, is your visibility impaired while driving, etc.
I’ve gotten my bass and an AI combo into a Camry, but it wasn’t very practical. If the car was ever in an accident, the bass would be severely damged. A Yaris a lot smaller than a Camry. I once had my bass in a 90s RAV4 along with my amp, the driver’s amp and a small PA but I was sitting with a large PA cabinet on my lap which was not at all safe.
When retiring a minivan back in 2022, I took my empty gig bag with me to dealerships to see how the bass would fit. The salesmen were scratching their heads, especially since it was the #1 most important thing about the car for me. All hatchbacks and even some SUVs weren’t suitable for me. I ended up with a Subaru Outback after deciding the Crosstrek and Forester were too small for anything but emergency transportation.
Disclaimer: at the time there was still very limited availability of cars due to the pandemic so I couldn't simply get a new minivan without waiting almost a year. Mark T mentioned a Honda CRV…they were unobtainable as was the Toyota RAV4.