UVM Components can only be created in build_phase.
UVM Objects (including sequences) can be created any time.
I don’t think your first example will work, because uvm_components don’t have a body() method and uvm_objects don’t have a build_phase() method.
We recommend that sequences be created at run_time, usually from the test, and passed down via the config_db.