Building an HDRP project, but Unity tries to compile URP Shader with over a million variants

The thread title pretty much explains what I am currently experiencing.
I remember that it was trying to compile 90k variants in 2021.3.19f,
then I decided to change it to 2022.3.4f1, the shader variants bumped up to over a million…

9135763--1268743--upload_2023-7-10_0-59-22.png

9135763--1268746--upload_2023-7-10_1-0-11.png

Yup, never mind, rookie mistake, I decided to remove the entire URP package and the project was built in under a minute.