Opening doors is not cheaper diagonally, the path preview is not calculating opening doors at all (instead it calculates walking through broken walls... which is wrong).
You can clearly see that by just walking, at the end you will not have 26 TUs as predicted, but 22 TUs (on your screenshot in the first post).