Age vs. Miles, Sonic vs. Spark

My previous car, which I loved was a 2016 Spark LS. I'm considering the Sonic as an upgrade for the bigger hatchback space, but willing to stick with a Spark for a better deal long term.

What would be a better deal, assuming history is the similar:

2020 Sonic LT at 50k miles for $13k

2022 Spark 1LT at 37k miles also for $13k

2021 Spark 1LT at 50k miles for $10k

2017 Spark 1LT at 32k miles for $10k

$13k is at right at the ceiling of my budget.