X-plane is indeed used in some schools for simulator training, it's highly complex and lots of variables are adjustable on spot (like visibility, clouds, winds, plane failures, etc) the terrain is also higly realistic.
The MS flight sim series is a bit less realistic in what concerns the terrain, but there are lots of downloads for it and the models are pretty realistic too (if you can buy or get paywares)
Techincal reality= X plane
Fun = Flight sim
Also there's a game called Lock on: Modern air combat. It has a "storyline" about a ficitional war in Ukraine I think (can't remember well) And many modern aircraft from where to choose. However many people use it for normal flights that do not include any combat and just do it for the fun of flying an F18 or A10. The game is also higly complex and takes a while to learn.
And of course an older combat sim; combat flight simulator 3 in WW2 you can pick from allieds or axis and do missions as you please, with territory being affected as you win or lose battles