Given all the other operations already underway it is simply not possible that the IJN could have abandoned the Pearl Harbor strike. Pearl Harbor was not a single operation but part of a concentrated plan. Abandonment would have left Japan's entire war plan in chaos, with ships assigned to an entire series of operations suddenly unavailable until they determined what the US Pacific Fleet was planning AND dealt with it.
Further I might raise a few points:
Japan EXPECTED massive losses at Pearl Harbor, with two or three carriers lost being seen as quite reasonable. In fact, this may have backfired on them. One reason further strikes on the oil farms and other facilities were canceled were Nagumo's relief at accomplishing 90% of what he wanted at a small fraction of what he anticipated losing. Given that Nagumo had already suffered almost 30% losses in aircraft, the thought of an all-out strike on Pearl Harbor a fourth time, when the carriers under Halsey might already be stalking him, gave him concern. (They had sighted and shot down several aircraft existing only on US carriers, he KNEW Halsey was nearby).
The sinking of battleships underway and able to defend themselves is far more difficult than unprepared and partially crewed in port. Repulse and Prince of Wales were without fighter escort or adequate support. An American force of 8 battleships with dozens of cruisers and destroyers, two carriers, and any land-based aircraft would have been a different matter.
The US actually had 17 battleships, including two new ones capable of matching the Japanese in speed, and 3 carriers in the Pacific. Given the inconvenience and time it took Japan to deal with our own tiny Asiatic Fleet, with a single 8" cruiser(Houston) as flagship, along with the allied forces, the arrival of 2-4 battleships could not have done anything but distract powerful Japanese forces for weeks, if not months. The attacks on India, as an example, might never have happened.
Three interesting possibilities could arise from this:
The US Navy pulls out in the night of December 6th. When the Japanese pilots arrive they suffer massive losses from fully alerted Army Air Corps units and anti-aircraft, and radio screaming reports that the port is empty! There are NO American warships there. Nagumo, having put Japan at war with the US is forced to run without doing harm. The war continues with the US taking advantage of interior lines around Indonesia, deploying 100-200 fighters for support following the loss of Repulse and Prince of Wales.
The US Navy sorties and attempts to engage the Japanese, is sighted in time, and suffers crippling losses in battle. However, with 20-25% of the fighters and probably the large majority of the bomber classes destroyed in battle, the Army Air Corps:
A) Smashes the first strikes, Nagumo retreats
B) Is never tested as Nagumo, having lost at least half his planes, sees no hope against a fully alerted Pearl Harbor.
C) Smashes the first strike, while most of the bombers, circling around the Japanese attack, hits Nagumo's force and sinks or damages most of his carriers.
Or how about this one? The US Navy sorties, moves in darkness under cover of radar, and gets BEHIND the Japanese fleet. Pinned between the fleet and Pearl Harbor, the US destroys Nagumo's force. A gun battle of two 'fast' battleships against eight is no contest.