How much direct sunlight does your shelf actually get? That's the thing that usually tips the decision one way or another.
Guys, the previous answer nailed the durability part - glass absolutely wins on longevity and clarity. But here's what doesn't get talked about enough: acrylic is way easier to work with if you need custom sizing or if you ever want to rearrange your setup. It's lighter, won't shatter if you bump it, and honestly for most indoor shelves that aren't baking in direct sun all day, acrylic stays perfectly clear for years. The yellowing thing mostly happens with cheap acrylic or if it's genuinely sitting in intense UV. Quality acrylic in a normal room? You won't notice degradation.
The practical hack nobody mentions: throw UV-filtering window film on whichever you pick. Costs almost nothing, takes ten minutes with a spray bottle, and it basically solves the yellowing problem with acrylic while protecting your models from sun damage anyway. I started doing this with some collectibles at home and it's genuinely changed how I think about display cases. If you go acrylic and add UV film, you get the durability concern completely off your back. Glass is still the "set it and forget it" choice if budget allows, but if you're already crowding your shelf, acrylic with film gives you flexibility to expand or modify later without feeling locked in.