LaTex is the C++ equivalent in the world of typesetting languages. You can do amazing things with it and have a pixel perfect document at the expense of very high complexity.
If you want to control the pixels in your document LaTeX is not your tool though. After all you write the content, and the layout is largely done for you. But if you want excellent automatic layout of text and mathematics, with awkwardly bolted on semi-automatic figure placement, it's your tool.
I've literally never had an issue with this and LateX is used by probably millions of technologically braindead academics and students (via Overleaf mostly these days, which does change the calculus) so maybe you're unlucky or cursed by Leslie Lamport