Russia has made threats of invading Poland after they "take" Ukraine. A majority of the Polish population will buddy up with Ukraine (and the West, as they are a NATO country) all day every day and twice on Sunday, versus become "friends" with Russia. That hasn't exactly worked out for them so well in the past.
I'm sure that like most countries, there is a fringe pro-Russian population who wants to reform back to "the good ole days" of the Soviet Era and attempt to achieve world domination... but the rest of Poland, along with their allies aren't going to let that happen.
It's a choice between the lesser of two evils, I suppose.
Duda's hugs to Zelenskyy say they forgive Ukraine for whatever they've done.

Their military aid to Ukraine guarantees it.
Attachment 1167175
Fighter Jets (4)
4 MiG-29 9.12As [To be delivered].
Tanks (~300)
250+ T-72M and T-72M1(R)s [Delivered from April 2022 onwards].
14 Leopard 2A4s [4 in February 2023, 10 in March February 2023].
30 PT-91s [To be delivered].
Infantry Fighting Vehicles (42+)
42+ BWP-1s [April 2022].
Infantry Mobility Vehicles
AMZ Dzik-2 [May 2022].
Command Vehicles
LPG WDSzs [June 2022] (Command vehicle for the AHS Krab SPG).
Self-Propelled Artillery (~95)
20+ 122mm 2S1 Goździks [April 2022].
18+54 155mm AHS Krabs [Delivered from June 2022 onwards] (18 donated by Poland, 54 purchased by Ukraine with EU funding).
Multiple Rocket Launchers (20+)
20+ 122mm BM-21 Grads [April 2022].
Anti-Aircraft (AA) Guns
AZP S-60s [Early 2023].[278]
Self-Propelled Anti-Aircraft Guns (SPAAGs)
ZSU-23-4 Shilkas [Before March 2023].
Surface-To-Air Missile (SAM) Systems
S-125 Newa SCs [November 2022].
9K33 Osa-AK(M)s [December 2022].
Osa-AKM-P1 Żądłos [January 2023].
Air-To-Air Missiles (100)
100 R-73s (For Su-27 and MiG-29 fighter aircraft) [February 2022].
Reconnaissance UAVs (20+)
20+ WB Electronics FlyEyes [February or March 2022 and August 2022] (An initial batch was delivered by the Polish Armed Forces with 20 more FlyEyes crowdfunded through the Lithuanian-Polish Army of Drones crowdfunder).
Loitering Munitions (37)
37 WB Electronics Warmates [Late 2022] (27 crowdfunded through the Lithuanian-Polish Army of Drones crowdfunder. An additional 10 examples donated by the manufacturer WB Group).
Man Portable Air Defence Systems (160)
160 PPZR Pioruns [February 2022].
Vehicles
Star 266s [Before September 2022].
Star 266M2s [Before October 2022].
Mortars (100)
100 60mm LMP-2017 Light Mortars [February 2022] (Delivered along with at least 1.500 mortar rounds).
Small Arms
Kbk wz.1988 Tantal Assault Rifles [June 2022].
Kbk AKMS Assault Rifles [Before October 2022].
FB MSBS Grot C16A2 Assault Rifles [May 2022] (Additional batches purchased by Ukraine in 2023 with EU funding).
UKM-2000P Machine Guns [June 2022].
ZMT WKW 50 Anti-Materiel Rifles [June 2022].
RGP-40 Grenade Launchers [February 2022].
RPG-76s Rocket Propelled Grenades [March 2022].
Ammunition
''Large Quantities'' Of 120mm OF-NMR HE-FRAG Ammunition For Mortars [Before November 2022].
''Large Quantities'' Of 122mm OF-462 HE Ammunition For 2S1 SPGs [Since February 2022].
''Large Quantities'' Of 152mm Ammunition For Artillery [Since February 2022].
''Large Quantities'' Of 125mm Ammunition For T-72 Tanks [Since February 2022].
30,000+ Rounds Of 5.56x45mm And 23mm Ammunition [February 2022].
73mm PG-9 Ammunition For SPG-9 Recoilless Guns [February or March 2022].
Protective Gear
42,000 WZ 2005 Helmets [February 2022].
Training and rehabilitation
Training of Ukrainian soldiers [since July 2016].
Treatment of more than 100 wounded soldiers [from 2022 onwards].
Deployment
98 Polish police officers participated in demining of Ukrainian territory from Summer 2022 for five months.
Financial aid
Złoty 4 billion (US$875 million) was offered by the National Bank of Poland to Ukraine on the as a currency swap.