In the latest manga chapter, the Seventh Hokage confirmed that he will do what is necessary to protect the village and if killing Boruto is necessary, then Naruto will do what must be done. Naruto also confirmed that Sasuke is another who is willing to take out Boruto if it’s required to save Konoha. Meaning that both Boruto’s father and teacher are capable of executing Boruto.
However, that’s easier said than done and I think when it actually comes to that moment, Naruto and Sasuke will hesitate. Naruto confirmed (not like we were ever in any doubt anyway) that Boruto is precious to him and that he’s still unable to fully process the situation that his son is in. Hearing Naruto saying that he will do what needs to be done, is likely just tough talk. In fact, I highly doubt Naruto could do such a thing and if placed in that situation, I think he will hesitate to make a decision.