My contract specifically says I work 40h/week, have X days off/year (outside of statutory holidays) as PTO, etc.
This means that 5 days a week, I am at my keyboard, available on Slack, etc for 8 hours per day.
Hours are logged in a time tracking application (including time spent when there was nothing to do), and overages get added automatically to holiday time.
Maybe it's different elsewhere, but where all the tech companies are, it just doesn't work the way you're describing it. If you're being forced to punch a timecard and salaried, I would contact an attorney.
When I was salaried at a FAANG, they had us start clocking to pay OT when we exceeded 40h, which was most people much of the time. It was a way to keep the pay competitive. This was ten years ago, so no idea if that’s still a thing.
If you were putting less than 40 hours a week in your timesheet, you had to use some form of paid time off (holiday, vacation, sick) or simply not get paid.