They can't detain you indefinitely without articulating a good reason, even as a non-citizen. What they can do is deny you entry. For citizens, not even that.
Job lost. Father died without you seeing him. Thousands of dollars gone in lost ticket, reservations. That's more than enough for 99% of people. The other 1% don't even try to enter USA