For Shorten, the calculation may be largely about economics. The Labor leader, whose campaign has promised significant spending to bolster public health programmes, education and wages, is hoping that improved relations with China, Australia's biggest trading partner, will keep the economy growing.
Morrison, whose conservative Coalition has narrowed the gap with Shorten's Labor Party in polls but is still trailing, has focused his election message on the notion that Labor's spending plans would send the economy into a recession. That is a frightening prospect to Australians who have known only economic expansion for a generation.
But critics fear that any softening towards China could have much broader ramifications, putting pressure on Australia, for instance, to roll back its clampdown on foreign interference or to keep silent on Chinese human rights abuses.
Morrison's warier stance on China was crystallised by remarks he made this week when asked about the protracted trade war between Washington and Beijing. He said that he would not pick sides, saying, "You stand by your friends, and you stand by your customers as well."
The Prime Minister's branding of China as a "customer" drew derision from Shorten, who promised "a bit more sophistication" in handling ties between the countries. For decades, Australia's economy has been buoyed by the export of natural resources to China, as well as money from Chinese students, tourists and investors.
It's clear which leader Chinese officials prefer: Social media accounts on WeChat affiliated with the Chinese Communist Party have mocked Morrison and his Government. One account disparaged "a country whose head has been kicked hard by kangaroos" and now wanted to be friends again after a rough patch.
Regardless of who wins the election, Australia will continue to face profound questions over how it balances the economic necessity of cooperating with China with the imperative of protecting its national security interests. Australia is also grappling with its place in the Asia-Pacific region, and the world beyond, as China seeks to expand its economic and military power.
The relationship between the two countries has grown strained in recent years as the Australian Government, heeding warnings from national security leaders, has pushed back against Beijing's attempts to expand its reach within the country's corporations, universities and national institutions, including Parliament.
The Australian Government passed legislation cracking down on foreign interference and secret lobbying on behalf of foreign interests. It also banned Chinese telecommunications giant Huawei from seeking a contract to install fifth-generation cellular networks in Australia, citing potential threats to national security.
Beijing, in turn, has held up Australian coal and wine imports, and is believed to be behind a cyberattack that infiltrated the networks of the federal Parliament and the three main political parties. China has dismissed the hacking allegations as a smear campaign.
China has also bypassed the federal Government by signing deals with individual Australian states as part of its gargantuan Belt and Road infrastructure initiative — a global push that the United States and other critics say has lacked transparency and trapped partners in debt.
While it is seen as unlikely that Shorten, who declined requests for an interview, would reverse the Government's ban on Huawei, his party has indicated that it is open to signing on to the Belt and Road programme.
"The fact that Australia is this ally that sits geographically parked in the Asia-Pacific does put it very much in the crosshairs of China's worldview, particularly on the idea of splintering and weakening the US alliance system," said Euan Graham, executive director of La Trobe Asia, a department of La Trobe University in Melbourne.
The Labor Party has traditionally promoted itself as more independent of US foreign policy compared with the Coalition, which under Prime Minister John Howard sent Australian troops into Afghanistan and Iraq.
In 2016, Shorten said that Trump's views on some issues were "barking mad". When asked by a television audience this year how he would reconcile those comments should he meet with Trump as prime minister, Shorten said he would deal with Trump "professionally and politely."
"But you ask, China or America? In Australia, we're smart enough to work with all of them to Australia's long-term interest if we behave in a smart and respectful fashion," Shorten told the audience.
Two recent cases involving public figures with ties to Australia may offer a glimpse of how Shorten would carry out that "respectful" approach.
Shorten has been reluctant to publicly criticise China over its detention of a Chinese-Australian novelist, Yang Hengjun, saying the case should not be handled through "megaphone diplomacy". But in the case of Bahraini soccer player Hakeem al-Araibi, who had been granted asylum in Australia, Shorten's party directly contacted authorities in Thailand, where al-Araibi was being held, to urge his release.
If China senses a friendlier stance from a Labor government, human rights is likely to be one of the areas where it would try to push first, said Giovanni Di Lieto, an international trade law expert at Monash University in Melbourne.
"That will be the real litmus test," he said.
Shorten is hoping to shift the debate on the proper approach towards China, which has largely been driven by a sharp divide between the country's business community and its national security establishment.
Connections to China run deep in the Labor Party, and have been a sore point at times. One of Shorten's mentors, former Prime Minister Paul Keating, was until recently the chairman of the advisory board for the China Development Bank, which has poured nearly US$200 billion into Belt and Road projects.
And Bob Carr, a former Labor foreign minister, has essentially become one of the Chinese Government's most effective spokesmen, and now heads a university institute dedicated to Chinese-Australian relations.
While the Coalition has had its share of China-connected scandals as well, the shadows have been especially hard for Labor to cast off.
During one election campaign debate, a Coalition minister began reeling off the names of past Labor politicians who had taken on Chinese-funded roles after leaving politics.
Written by: Jamie Tarabay
Photograph by: Tom Brenner
© 2019 THE NEW YORK TIMES