On that second point, a perspective note for non-US people who don't realize: Sweden has about the same geographic area as just California. Only covers about 5% of the whole contiguous US.
Transportation costs for most individuals are related to density at a city level, not a nation level, so I don’t see the relevance of comparing density of a nation.