What type of engineering student? (electrical, mechanical, chemical, civil, …?)
As an engineer, 8 GB of RAM and 256 GB SSD both seem a bit anemic to me. I would want to double both of those. Actually I personally would want at least 32 GB of RAM, but if you’re on a budget, 16 GB will be enough for reasonable performance with most engineering type software packages and development environments.
The HP in the second post has a proper numeric keypad, which is something I also look for in a laptop.
Get the biggest screen you can afford. For engineering work, a bigger screen with better resolution is much more important than FPS performance in games. The more code you can see on screen or the more detail you can see in CAD drawings the better.
For what it’s worth, I am a hardware (EE) and software design engineer in the R&D department of a company that makes industrial controls.
My company mostly buys Lenovo laptops. I have no idea what they cost.