The wheels size is only one component of the bike. It has some characteristics but the overall package needs to be right.
Never buy a bike that isn’t the right size because it’s cheap. It will cost more in swapping stems etc before finally getting rid of it and buying a bike the right size.
Height as a measurement in modern mountain bikes is a bit misleading, reach, torso size and leg length are all important parts of the overall fit. You can devise a complex spreadsheet to work it all out with the different angles but nothing beats sitting on a bike and if your new to modern MTB’s sitting on it, riding it and having somebody who knows there too.
The best way to get technically better is to get technically better that is nothing to do with the bike. Look up some beginner skills sessions there are loads around depending on where you are, it will be a much better investment and might help kill off bad habits before you start them. If the coach is any good they will also be able to tell you a bit more about you and your bike (having seen you both) in terms of fit and feel.