How to make sure Figma stays within same layer level

So when I select a layer, I want to create or paste an element, on exactly the same level. Either above or below the selected element.

What happens instead, is something completely random, and i simply lose the element and have to put it there manually.

This has been an excruciating process in Figma and tools like XD and Sketch do this out of the box. How do I make Figma behave the same?

A video illustrating the issue:

Here is another example, but this time using alt to duplicate a layer