I'd join a company under the condition that they allowed flexible hours and wfh. Then 6 months later managers would change and all of a sudden the way we'd been operating would no longer be acceptable. Always the person leading the charge towards eliminating wfh and remote work is some non-technical idiot who wants to make his mark by demonstrating his "leadership skills" and has no idea what engineers actually do.
So D don't even take promises for flexible hours and remote work seriously anymore unless it's a fully distributed team. I hope the trend of increasingly distributed workforces continues to rise so that developers don't have to deal with this "ass-in-seat" nonsense anymore.