I tested the method of breeding something myself and I can confirm that it does not treat it the same in game. For the test I used a sableye I had generated with only egg moves to breed with another sableye; the result was that the offspring carried over the egg moves permanently and was able to learn them again when forgotten for another move.
Pokemon generated as eggs also are able to permanently keep their egg moves they are hatched with as I also tested this as well, however generated non-egg pokemon are unable to permanently keep their egg moves. I also attempted to add a met location when testing the non-egg generated pokemon and the results are still the same; non-permanent egg moves. This is a bit weird to me because in the past when using the generator, egg moves were indeed permanent whether the generated pokemon was an egg or not.
Update: Attempting to generate a pokemon with the egg moves but using =WasEgg=False automatically makes the pokemon into an egg. I could be wrong but based on my observation I believe the generator creates the non-egg pokemon with egg moves on their movelist as being hatched from an egg by default, however instead of treating it as if it was bred with the move it treats it as if it was hatched without the egg moves being bred onto it and instead had the moves added onto it as if it was done with a mirror herb, thus not allowing the egg moves to be permanent.