I think Pelosi’s visit is necessary to prove that the USA is not bluffing.
Any disagreement about the visit between the House and the Presidency is contrived to protect the President from any damage should there be unforeseen problems.
This visit tells China not to push any farther. This is a strong move to show that humanitarian values and liberal democracies will be defended. Ukraine is an example of political weakness that led to war.
China will not start a war against the USA but it would have increased their pressure on Taiwan if the USA had procrastinated any longer.
Who Dares Shares.