Yamaha makes a YZ 4 stroke and Honda makes a CR 4 stroke or CRF as well.
If you’re set on Honda or Yamaha then get a WR450 or XR400. You'll have to decide but don't over look the Suzuki DRZ 400, they come with an electric start! These are all good bikes; the WR will give you the most power. The DRZ is a great handling bike and then the XR is just a typical rock solid "Honda".
If your buying used you'll want to look at the WR-400 or WR 426, these are the previous models of the Yamaha.
If you’re buying a used bike also look at the KTM EXC 400, it's electric start!
If I were just getting into bikes I might lean toward the DRZ with electric start! It's probably the most affordable in the group.
Good luck, and do a search on the bike your leaning towards, you should dig up some great info :thumb: