There are several good options for burning DVDs on an iMac running macOS Sonoma, but one of the simplest and best software options is iDVD and Roxio Toast Titanium.
iDVD is a user-friendly tool that allows you to easily create and burn DVDs of your videos, photos, and music. With iDVD, you can customize your DVD menus, add chapters, and include special features such as animated menu screens.
Roxio Toast Titanium that allows Mac users to burn CDs, DVDs and Blu-ray discs, as well as to manage and edit multimedia files. It also includes advanced features such as video conversion, video editing, screen recording, and audio capture.
More options from this: https://www.sysgeeker.com/blog/top-best-8-cd-dvd-burners-for-mac-create-stunning-discs-with-ease.html
Whichever you choose, I hope you succeed.