The case of diversion with increased fuel consumption is rarely catered to in flight planning, getting to half flaps with the gear down and having a failure which prevents further flap extension or retraction is quite possible. Out come the books and you find the runway isn’t long enough and with your new fuel flows you won’t make an airport with sufficient runway length.
Landing at the original airport and having an overrun with the emergency services in attendance would have been a better option compared to running out of fuel though.