The Northern Ireland situation was simply resolved the only way it could be. If there was some better outcome for the UK that would have not spoiled the entire integrity of the EU, I am sure it would have been allowed. But no matter how good Johnson's team was in extracting concessions from the EU, even they can not move mountains nor islands, or otherwise change hard geographical realities.