Depending on your line of work, it's not the one who complies more to all the rules and makes up mental obligations who stays, it's the one who get the best results.
My sis can come to work in flip flops even though no one likes it and the others are dressed very formally because she's so good at what she does that they'd have trouble replacing her.
No one is irreplaceable. The trick is to make yourself more difficult to replace than to keep on. Won't stop you from losing your job if everyone is losing them but it may mean that if they are keeping some employees they'd pick you as someone to keep.
My sis can come to work in flip flops even though no one likes it and the others are dressed very formally because she's so good at what she does that they'd have trouble replacing her.