If you shave more often than a few times a year, a safety razor will be way more economical in the long run because the razor handle never needs to be replaced and the blades are hilariously cheaper. Even compared to the cartridge razors where you reuse the handle, because of the exorbitant cost of replacement heads, cartridge razors will quickly become more expensive than safety razors.
Disposables are the most expensive of all because you'll be buying them for the rest of your life.