'Instead of' would also work, in the case of Windows 95, as it would be fair to say that simply exiting Windows involves resetting everything back to the way DOS had it, then rerunning DOS.
And when you ran DOS inside a window in Windows 95, then that was DOS running inside of a VM.
DOS is a real mode OS. Windows 95 is a protected mode. Windows 3 was some kind of dumbed-down protected mode that 286 had. Actually I believe it could work in different modes.
The distinction is pretty important. Windows 95, that needed a 386 minimum, was a true protected mode system, with virtual memory and pre-emptive multitasking. It would be absurd to call it "a DOS program" just because you could launch it from the DOS prompt.
So the same can be said of Windows 3. It changed processor mode, not so radically as 95, but enough to exit real mode... calling it "just a DOS program" is simply wrong.
Nitpicking just a little bit: Windows 3 didn't run inside DOS. Maybe "on top of it" if you want to put it that way, but not "inside".
It changed the processor and graphic modes and when shut down it reverted to the prompt. But by no means was it "just a big DOS program".
Guess what: Windows 95 also was a program running "on top" of DOS. That was somewhat hidden, but I remember clearly that I booted to DOS and then executed either Windows 3 or Windows 95 (I was programming a compatible 16/32 bits application). There was some tweaking needed but it worked nicely.