Longer commute or higher rent

If you already moving anyway & looking at 2 places 20 minutes apart it seems you quite flexible, then maybe even closer to work would also be possible? About an hour commute in CH covers quite a big area, after all.
Tax should also be considered when doing the comparison financially, esp. different Kantons are involved.