Sometimes it’s not you
Not every culture is for you.
If the one you're in forces you to compromise your values every day and employs practices that you disagree with, no amount of loyalty will fix that. Maybe you were sold a vision that never materialised or ended up reporting to a manager who does their best to de-motivate you?
Staying and stewing helps nobody, least of all you. Whilst leaving may feel like failure, it's actually you prioritising self-respect and your long-term happiness.
Find the place that fits you, and go there instead