It’s not that simple. It is mortgage+insurance+maintenance
Rent is just rent.
You MAY be able to resell the house if the location is somewhere people want to live in several decades. All it takes is a major economic source to dry up. A military base closing, a factory shutting down, etc can wreck your property value.