Sorry to hear about that.
It is very important imo to always remember that it is just a job. Even if you are career driven, self starter, workaholic, try to soak up as much knowledge and do not do crazy overtime except maybe a bit in a startup if you are one of the first 10 employees and believe in the product.
No company will say thanks for wrecking your personal life and ending up burned out.
It is still perfectly possible to climb the career ladder without overtime and doing extra tasks for no extra pay etc.
Time is a persons most valuable asset and the companies know that. Do not waste it on repetitive monkey tasks which are the result of multiple product development failures covered up by incompetent managers. There is not much to learn in these places. These are for people with sub average ambitions, fair enough.
Your point with the hr would be funny if it weren't so sad and real. Anyone who was ever subject to such will immediately understand why concentration camps have happened.
Never trust HR beyond rota planning and perhaps payroll.
They are the ones posting these ridiculous developer job adverts, we have all seen them.