I haven't tried this and gotten good results for the instrument, unfortunately, but I've only tried with final mixes on full bands, with minimal instrumentation you may have better luck, but be careful because it can destroy your tone.
What will help more is if you get some mics that only pick up from one direction, called unidirectional microphones, and get some kind of shield to put between your voice and the guitar mic. OR do what the pros do, consider the two you recorded together to be "a scratch track" even if it's multiple tracks, then while listening to that, record each separately for the final tracks, and delete the scratch.
Edit to add, a lot of people don't like recording everything separately because they feel shy, and I agree to an extent, there is a level of personal, self-stage fright that you have to work past if you haven't already, but if that's uncomfortable, the alternative is tracks that bleed. I think keeping the goal in mind is a good motivator to accept the bad of either choice.