Align the alternatives
Use the same asset, usage period, and cost boundary for both cases. The lease side should reflect the payments and other amounts owed under the lease. The buy side should reflect acquisition and financing costs, followed by any value recovered from selling or trading the asset. Comparing different periods can make the cheaper-looking option misleading.