What are the usecases of Nested Elements vs. Templates?

I’m looking at nested elements, and to my uninitiated ear, they sound quite a lot like a version of templates.

So why and when to use nested elements and why and when use templates (I’m talking section templates)? Anyone got any experience here?

TIA!