2024 - Lease Buyout vs. New Lease

What is the best way to determine if a lease buyout or a new lease is better? I have a 2020 Hyundai Elantra GT-N (they don’t make these anymore) that has leather ventilated seats with a panoramic sunroom in near perfect condition. The buyout is $14,005. and a dealership (with a dealership fee of $799) is offering to put me into a bit larger 2024 Tucson Ltd. that has similar features. But they are asking:
• 10000 miles per year
• $349 tax included
• $4000 total due at signing
• 35 remaining payments of $349
• 349x3+4000=$16,215