it turned out that I was able to eventually unbrick it after hours of trying different things.
You don't even know what "brick" means, do you?
"Bricking" means, basically, turning the device into a functional brick which does nothing whatsoever. It is not possible to restore a bricked device, under ANY circumstances. There is no such thing as "unbricking". The term makes no sense.
If you could restore it to functionality, then it was not "bricked".
You most emphatically could no simply do a software restore.
In point of fact, yes, you could. The iPhone has a special mode you can boot it into that will allow you to do a restore regardless of the software on the device. The fact that you didn't know how to do it does not invalidate my original statements.
iPhones cannot be bricked by jailbreaking. Period. This is a statement of fact. If you disagree, then you're wrong. It's that simple.