What is the meaning of "just as well" in this context?
The family cemetery sat at the bottom of the hill from the mansion. Dan thought it was kind of stupid they'd hired a hearse to carry Grace a hundred yards down the driveway. They could've put wheels on the coffin like they have on suitcases and that would've worked just as well.
Does this "just as well" have the same meaning of "just as well" in "It's just as well we'd prepared everything beforehand."
The phrase in the first sentence equates to "equally well".
The phrase in the second sentence equates to "it's a good thing."
So, no, they do not have the same meaning.