In both cases it would be pushed through the door. From the FAQ:
What if there are multiple blocked and/or unblocked paths?
If a figure is being pushed/pulled and there is an unblocked hex, it has to be used. If there are multiple unblocked hexes, the players decide. This is evaluated one hex at a time until the effect is fully resolved or there are no valid hexes for the figure to move into.