There are for sure better and worse companies in each category, but even within big companies there is huge variance and it depends what you are looking for.
Though some generic observation:
1. Product companies tends to have better culture than software consultancies.
2. Companies which got strong technical leadership and software is a key component rather than add on (e.g. some banks).
3. Good litmus test is to ask employees, do they have hackathons/educational budget/internal tech talks.
4. Another litmus test is to ask how hard is to push feature to production/release or about developer tooling. Good companies tend to have convenient tools.
Of course even those 4 points got exceptions.