Your 2nd statement juxtaposed two different processes together and conflates two different ideas. As such you question assumes a false equivalency and is not logical.
Nevertheless, Brahma Sutras (https://www.wisdomlib.org/hinduism/book/brahma-sutras/d/doc63661.html Swami Vireshwarananda translator) says:
Chapter II, Section I, Adhikarana XI
Adhikarana summary: Brahman’s creation has no motive behind except a sportive impulse
Brahma-Sutra 2.1.32: Sanskrit text and English translation.
न प्रयोजनवत्त्वात् ॥ ३२ ॥
na prayojanavattvāt || 32 ||
na—Not; prayojanavattvāt—on account of having motive.
- (Brahman is) not (the creator of the world) on account of (every activity) having a motive.
Granting that Brahman possesses all powers for creation, a further objection is raised against Its being the cause. Nobody engages himself in anything without a motive or purpose. Everything is undertaken by people to satisfy .some desire. But Brahman is self-sufficient, therefore It has nothing to gain by the creation; hence we cannot expect It to engage Itself in such a useless creation. Therefore Brahman cannot be the cause of the world.
Brahma-Sutra 2.1.33: Sanskrit text and English translation.
लोकवत्तु, लीलाकैवल्यम् ॥ ३३ ॥
lokavattu, līlākaivalyam || 33 ||
lokavat—As is seen in the world; tu—but; līlākaivalyam—mere pastime.
- But (Brahman’s creative activity) is mere pastime, as is seen in the world.
Even as kings without any motive behind are seen to engage in acts for mere pastime, or even as men breathe without a purpose, for it is their very nature, or even as children play out of mere fun, so also Brahman without any purpose engages Itself in creating this world of diversity. This answers the objection raised in the previous Sutra against Brahman’s being the cause of the world.
Further in Brahma Sutras it says:
Chapter II, Section III, Adhikarana XI
Adhikarana summary: The individual soul is permanent, eternal, etc.
Brahma-Sutra 2.3.17: Sanskrit text and English translation.
नात्मा, आश्रुतेर्नित्यत्वाच्च ताभ्यः ॥ १७ ॥
nātmā, āśruternityatvācca tābhyaḥ || 17 ||
na—Is not (produced); ātmā—the individual self; āśruteḥ—not being (so) mentioned by the scriptures; nityatvāt—being eternal; ca—also; tābhyaḥ—from them (Srutis);
- The individual self is not (produced), (for it is) not (so) mentioned by the scriptures ; also (on account of its) being eternal, (for so it is known) from them (the Sruti texts).
At the beginning of creation there was only “One Brahman without a second” (Ait. 1. 1), and so it is not reasonable to say that the individual soul is not born, for then there was nothing but Brahman. Again the Sruti says : “Just as from a fire tiny sparks fly in all directions, even so from this Atman emanate all Pranas (organs), all worlds, all gods, and all the selves” (Brih. 2. 1. 20, Madhyandina recension). So the opponent argues that the individual soul is born at the beginning of the cycle, just as Ak asa and other elements are born. This Sutra refutes it and says that the individual soul is not born, for there is no statement to that effect in the Sruti in the section dealing with creation. On the other hand Sruti texts clearly deny such birth to the individual soul. “Unborn, eternal” (Kath. 1. 2. 18); “This great birthless Self” (Brih. 4. 4. 25). It is the one Brahman without a second that enters the intellect and appears as the individual soul (Jiva). “Having created it, It entered into it” (Taitt. 2. 6). Hence as there is in reality no difference between the individual soul and Brahman, the fact of the Jiva’s being non-created does not contradict the text, “At the beginning there was only the Atman without a second” (Ait. 1. 1). The creation of souls spoken of in the other texts cited is only in a secondary sense. It does not therefore contradict the text, “Having created it, It entered into it.”
In the Vedanta Paribhasa of Dharmaraja Adhvarindra (translated by Swami Madhavananda), Chapter VII 'The Subject Matter of Vedanta', section 'Origin of the Various Worlds and Bodies' it reads:
Now, in the origination of the five subtle elements etc.(Refers to the five gross elements), the subtle body (Superior and inferior) consisting of seventeen components, and the gross body of Hiranyagarbha, God is the direct agent; while in the origination of all the rest of the universe He is such through the the medium of Hiranyagarbha and others. For the Sruti says, "Well, let Me enter these three deities (That is, the gross universe. Here Hiranyagarbha is identified with Viraj, who represents the sum total of all gross bodies.) as this individual self and manifest name and form." (Chandogya Upanishad VI. iii. 2).
Hiranyagarbha is the first individual to be born, and is different from the Trinity (brahma, Visnu, and Siva). (witness the Smriti text), "He indeed is the first embidied being. He indeed is called a person (purusa). He is the progenitor of beings. (That) Brahma appeared first of all (Siva-Purana V. I. viii., 22; Markandeya Purana XIV. 64; etc.). As also the Sruti text, "Hiranyagarbha appeared first of all," etc. (Rg Veda X.cxxi. 1; Vajasaneya Samhita XIII. 4; etc.).
Thus the projection of the elements and of things made up of the elements as been described.