By the way you've defined y in MyFunc2, y is a copy of the original variable. Here the copy is being instantiated on the stack and will occupy sizeof(y) memory on the stack.
If for example you'd defined y as const auto& y = x;
then y would be a reference which is simply the size of a pointer.