When I bought my car I looked into the lowest lifetime cost of ownership vehicles because I was sick of my previous car breaking all the time. Priuses won by a lot between longevity, low repair needs, and fuel efficiency. Unfortunately that means they had high resale value so I went with something I could comfortably buy cash, so I went with something else small and reliable.
These days I'm more inclined towards full electric, but if I needed gas I'd prioritize hybrids