UA's team has access to exactly when the door closed and if it was greater than 15 minutes before the scheduled departure time, they owe the OP.
Once they started boarding and the queue is empty, they will continue with the procedures for the flight, they have an incentive to keep their on-time stats. It’s not like a train where you can simply step in a minute before it leaves.
Some airlines print a boarding time for their flights onto their boarding passes, or show it in their app. This is often a fake number simply computed by deducting 30 or 40 minutes from your flight's departure time; it's certainly not adhered to very closely or involved in most contract of carriages.
One reason for this is that an airline is usually not involved in issuing all of its boarding passes, and so many boarding passes simply do not have a "boarding time" on them. Air India is perfectly capable of issuing boarding passes for United, but are unlikely to have easy access a "boarding time" from United (since it's not very important).
United makes passenger obligations clear -- arrive 15/30 minutes before a domestic/international departure. Otherwise, it's an IDB.
What the parent quoted seems to be United's actual policy, i.e. that they'll accept any (domestic) passengers who arrive 15+ minutes before departure.
> All Passengers must be present at the loading gate for boarding at least 15 minutes prior to scheduled departure.
The OP was clearly involuntarily denied boarding even if it was an international flight, and is eligible for that compensation.
https://www.united.com/en/us/fly/contract-of-carriage.html#r...