Well, the F-35 is actually a useful instrument which maintains US hegemony. A better comparison would be the movie Cats, which had a budget of 95 million, and serves no purpose to society.
You can buy arecibo for $120M. You can't do anything with it, and you give it on loan to the NSF. Then eventually you can transfer it to somebody else.