iPhones generally hold their value better than Samsung phones due to brand perception and demand in the used market. Apple also tends to provide longer software update support, often 6-7 years, while Samsung is typically 4-5 years of major updates, and then security patches. Battery replacement is comparable, both offering official services and third-party options, although Apple's battery replacements are often perceived as more reliable. Consider the cost of battery replacement in your budget when evaluating the total cost of ownership.