For me it would heavily depend on where the office is located relative to my apartment, and how long my commute would turn out to be. More than 15-20 minutes by bike is a no-go (I live in Europe).
Also assuming the requirement to be in the office isn't a huge red flag for bad management in the first place.