An idea floated by President Trump to send immigrants from the border to "sanctuary cities" to exact revenge on Democratic foes could end up doing the migrants a favor by placing them in locations that make it easier to put down roots and stay in the country, according to a report by The Associated Press.

The plan would put thousands of immigrants in cities that are not only welcoming to them, but also more likely to rebuff federal officials carrying out deportation orders. Many of these locations have more resources to help immigrants make their legal cases to stay in the United States than smaller cities, with some of the nation's biggest immigration advocacy groups based in places like San Francisco, New York City and Chicago. The downside for the immigrants would be a high cost of living in the cities.

The Transactional Records Access Clearinghouse at Syracuse University announced this week that an analysis found that immigrants in sanctuary cities such as New York and Los Angeles are 20 percent less likely to be arrested out in the community than in cities without such policies.

"With immigrants being less likely to commit crimes than the U.S. born population, and with sanctuary jurisdictions being safer and more productive than non-sanctuary jurisdictions, the data damns this proposal as a politically motivated stunt that seeks to play politics with peoples' lives," said George Gascon, district attorney for San Francisco.

TRUMP DOUBLES DOWN ON PLAN TO SHIP MIGRANTS TO SANCTUARY CITIES

Trump has grown increasingly frustrated over the situation at the border, where tens of thousands of immigrant families are crossing each month, many to claim asylum. His administration has attempted several efforts to stop the flow and he recently shook up the top ranks of the Department of Homeland Security.

The idea to ship immigrants to Democratic strongholds was considered twice in recent months, but the White House and Department of Homeland Security said the plan had been rejected.

Nonetheless, Trump said Friday he was still considering the idea.

CLICK HERE FOR THE FOX NEWS APP

"Due to the fact that Democrats are unwilling to change our very dangerous immigration laws, we are indeed, as reported, giving strong considerations to placing Illegal Immigrants in Sanctuary Cities only," Trump tweeted. He added that, "The Radical Left always seems to have an Open Borders, Open Arms policy - so this should make them very happy!"

The mayor of at least one such sanctuary city, Chicago, said she'd welcome such an immigrant influx. “We have people who are routinely coming to this city. We have a whole infrastructure that’s built up to make sure that their rights are protected while the city of Chicago has, under the current administration, provided funding for various groups to help support asylum seekers and other people that are going through the immigration court system" Mayor-elect Lori Lightfoot said on CNN on Friday. "I expect it will continue, if not expand upon, those kinds of resources."

She added: "We are a city that is a sanctuary city. We have immigrants from all over the world who call Chicago their home. They’ll continue to do that, and we’re going to continue to make sure that this is truly a welcoming community for those immigrants and we want them to come to the city of Chicago.”

The plan discussed by Trump would have financial, logistical and legal issues.

The transportation of immigrants who are arrested at the border to large and faraway cities would be burdensome and costly at a time when Immigration and Customs Enforcement (ICE) is already stretched thin, having released over 125,000 immigrants into the country pending their immigration court since Dec. 21. They are currently being released mainly in border states.

Flights chartered by ICE cost about $7,785 per flight hour, according to the agency, and require multiple staffers, including an in-flight medical professional. The agency also uses commercial flights. Doing longer transports would increase liability for the agency, especially considering that many of the immigrants in its care are families with young children.

And despite the consideration given to releasing the immigrants on the streets to sanctuary cities, the Trump administration actually has plenty of jail space to detain families. As of April 11, the nation's three facilities to detain immigrant families were nowhere near capacity, including a Pennsylvania facility housing only nine immigrants.

It's also unclear how long the immigrants would stay in these cities because they are required to provide an address to federal authorities - typically of a family member - as a condition of their release.

"It's illogical," said Angela Chan, policy director and senior attorney with the San Francisco-based Asian Law Caucus. "It's just alarming that they are spending so much effort and so much time to engage in political theater."

The Trump administration has long pushed back against cities with sanctuary policies, which generally prohibit local authorities to cooperate with federal immigration police, often by refusing to hold people arrested on local charges past their release date at the request of immigration officers. Over 100 local governments around the country have adopted a variety of these polices

"New York City will always be the ultimate city of immigrants - the President's empty threats won't change that," New York City Mayor Bill DeBlasio said in a statement.

But Trump seemed ready to step up his fight with the cities, vowing to "give them an unlimited supply" of immigrants from the border.

Fox News' Joseph A. Wulfsohn and The Associated Press contributed to this report.