This question has been asked and answered before.
Financially, owning a car will be more economical than leasing one in most cases.
The reason for this is that leasing arrangements are designed to make a profit for the leasing company over and above the value of the car. A leasing company that does not profit off their customers will not be in business for long. This is a zero-sum game and the leasing customer is the loser.
The lion's share of the customer losses are in maintenance and in the event of an accident or other damage. In both cases, leasing arrangements are designed to make a large profit for the owner. The average customer assumes they will never get into an accident and they underestimate the losses they will take on the maintenance. For example, if both oxygen sensors need to be replaced and it would have cost you $800 to replace them yourself, but the leasing company charges you $1200, then BOOM! you just lost $400. If the car is totaled, the customer will lose many thousands of dollars. Leasing contracts are designed to make money for the owner, not the customer.
Another way leasing agents make money is on "required maintenance". Most leasing contracts require the leasor to perform "required" maintenance, oil changes, tire rotations, etc. Also, with newer cars manufacturers recalls are common. Those are required as well. Nearly nobody does this maintenance correctly. This gives the agent the excuse to charge the customer thousands of dollars when the vehicle is returned. Bills of $4000 to $6000 on a 3 year lease for failure to perform required maintenance are common. Its items like this that allow the leasing agent to get a profit on what looks like a "good deal" when the customer walked in the door 3 years previously.
The advantage of leasing is that it costs less up front and it is more convenient to switch to a different car because you don't have to sell the car.